service I18NService view source

Localization Service to translate the app

members

getAllLng() : (Array)

Get all available translations with locales id

Returns

(Array) - array of locales id

setLng(locale : string)

Set the language of the app

Parameters

locale string language code to set (e.g en_US, fr_FR ...)

translate(widget : WidgetBase)

Translate a widget with i18n data

Parameters

widget WidgetBase Widget to translate