Locale methods
Methods
-
<static> getLocale() → {string}
-
Get the current locale
- Source:
Returns:
current locale e.g. en_US
- Type
- string
-
<static> localize(messageName) → {string}
-
Get the i18n string
Parameters:
Name Type Description messageName
string key in messages.json
- Source:
Returns:
internationalized string
- Type
- string