Translations
Custom i18n
This feature allows to override translations or define additional translations.
Custom translations are stored in config/i18n/{app,formly}/<locale>.{json,json5,yml,yaml} and may be in one of the following formats: json, json5 or yaml.
Example: Define a custom translation for a search attribute
config/local.yaml
users:
searchAttributes:
- {$id: '$id', label: 'k5SiteSearch.attributes.id'}
- {$id: '$name', label: 'k5SiteSearch.attributes.login'}
- {$id: '$description', label: 'k5SiteSearch.attributes.description'}
- {$id: 'givenName', label: 'k5SiteSearch.attributes.givenName'}
- {$id: 'sn', label: 'k5SiteSearch.attributes.surName'}
- {$id: 'mail', label: 'k5SiteSearch.attributes.mail'}
- {$id: 'some-custom-field', label: 'some-custom-field'}
config/i18n/app/en.yaml
some-custom-field: Some Custom Field Label
# override an existing label
k5SiteSearch:
attributes:
login: User Login Name
config/i18n/app/de.yaml
some-custom-field: Ein Eigenes Feld
# override an existing label
k5SiteSearch:
attributes:
login: Anmeldename