post https://example.com/settings/v1/locales
Add locale to the available locales
Locale codes are lowercase formatted and using '-' between country code and language, for example: 'en-us'
Request Body Parameters:
Parameter | Type | Mandatory | Description | Example |
---|---|---|---|---|
code | string | true | Locale in the following format: {language-ISO639}-{countryCode-ISO3166} lowercase. | en-us |
hidden | boolean | false | false | |
translationFallbackTypes | array | false | Valid array values: DEFAULT_LOCALE,SYSTEM_LOCALE. Allow to control the fallback mechanism. If not provided(null) then the default behavior is the following fallback order: -> DEFAULT_LOCALE -> SYSTEM_LOCALE. The recommended value is null. When all of the fallback types return an empty value, no translation will be made, i.e. the original value will be retained |
This API requires SETTINGS_CREATE_LOCALE permission(s).