x5engine.l10n
Provide a set of methods to get/add/replace the localizations.
This class supports only one language (the one set at step 1 of WSX5).
- x5engine.l10n
- .add(id, val) ⇒
void
- .get(id, def) ⇒
string
.add(id, val) ⇒ void
Add a new localization to the current set.
If the localization already exists, it will be replaced with the new one.
Kind: static method of x5engine.l10n
Param | Type | Description |
---|---|---|
id | string |
The localization ID |
val | string |
The localization value |
.get(id, def) ⇒ string
Get the value of a specific localization.
Kind: static method of x5engine.l10n
Returns: string
- The localization value
Param | Type | Description |
---|---|---|
id | string |
The localization ID |
def | string |
The localization default value |