Localization
Syntax
$input.localize(lang: $language)
Evaluates an internationalized text in a given language.
Parameters
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
input | Internationalized text | The internationalized text whose localization should be determined. | yes | |
language | String | The code of the language to localize to. | no | The language of the logged in user or the default language of the application. |
Return value
Type: Text
The value that a user with the selected language will see.
Examples
{
resKey = {"de": "Hallo", "en": "Hello"}.internationalize();
$resKey.localize("en"); // Hello
$resKey.localize("de"); // Hallo
}