preferred-locales

The license could not be verified: License Certificate has expired!

Type: Array<String>

Set the locales used to lookup localized messages.

The value is an array of IETF language tags, in order of decreasing preference. If a message is not available in a preferred locale, it will fall back to a locale later in the array.

It is recommended to always include the en language tag as the last entry in the array. This way, when new messages are added in future releases of the platform for which no localization has been created yet, the application will fall back to the built-in English localization for these messages rather than causing an error.

Defaults to ['en-GB', 'en']

Example

configurationManager.set('preferred-locales', ['de-DE', 'tr-TR', 'en-GB', 'en']);
Was this page helpful?