Language
Internationalization
The CE.SDK editor includes an internationalization API that facilitates locale configuration management during runtime.
cesdk.i18n.getLocale(): string
returns the currently set locale string, e.g."en"
for our default english locale.cesdk.i18n.setLocale(locale: string)
updates the locale to the string passed in aslocale
parameter. This is either one of our predefined strings ("en"
for english or"de"
for german) or any additionally configured locales.cesdk.i18n.setTranslations(definition: { [locale: string]: object })
adds an object with translations to CE.SDK. The data passed in asdefinition
parameter has the same format as thei18n
configuration option.