extends Instance
Class fields
| Field | XML type | Value |
|---|---|---|
Name | string | LocalizationTable |
ClassCategory | string | Localization |
summary | string | A database of keyed translations for multiple locales. |
Properties
3DevelopmentLanguage
string| Field | XML type | Value |
|---|---|---|
Name | string | DevelopmentLanguage |
summary | string | The default locale used when a language is not supplied. |
Root
Object| Field | XML type | Value |
|---|---|---|
Name | string | Root |
summary | string | The root Instance associated with this localization table. |
SourceLocaleId
string| Field | XML type | Value |
|---|---|---|
Name | string | SourceLocaleId |
Browsable | bool | false |
summary | string | The locale of the table's source strings. |
Functions
6GetContents
() → string| Field | XML type | Value |
|---|---|---|
Name | string | GetContents |
summary | string | Returns all localization entries encoded as JSON. |
GetEntries
() → Array| Field | XML type | Value |
|---|---|---|
Name | string | GetEntries |
summary | string | Returns an array of localization entry dictionaries. |
GetString
(targetLocaleId: string, key: string) → string| Field | XML type | Value |
|---|---|---|
Name | string | GetString |
summary | string | Returns the translation for a locale and key. |
RemoveKey
(key: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | RemoveKey |
summary | string | Removes the entry with the given key. |
SetContents
(contents: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetContents |
summary | string | Replaces all entries from a JSON localization table. |
SetEntry
(key: string, targetLocaleId: string, text: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetEntry |
summary | string | Sets a translation for a locale and key. |