diff --git a/modules/ui/field.js b/modules/ui/field.js index c7f0f2ca5..b05b8d5de 100644 --- a/modules/ui/field.js +++ b/modules/ui/field.js @@ -97,6 +97,15 @@ export function uiField(context, presetField, entityIDs, options) { } return false; } + if (field.type === 'localized') { + for (let tagKey in _tags) { + // matches for field:, where is a BCP 47 locale code + let match = tagKey.match(/^(.*):([a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2})?)$/); + if (match && match[1] === field.key && match[2]) { + return true; + } + } + } return _tags[key] !== undefined; }); }