Localizes all localizable fields in the semantic structure.
the semantics object
the language to localize to
Optional
localizeAllFields: booleantrue if not only label, placeholder and description should be localized but all fields
a copy of the semantic structure with localized fields
Scans a semantic structure and localizes the label, placeholder and description fields. You can also localize all fields by passing the respective option.