LocalizationTable

extends Instance

Class fields

FieldXML typeValue
NamestringLocalizationTable
ClassCategorystringLocalization
summarystringA database of keyed translations for multiple locales.

Properties

3
DevelopmentLanguage
string
FieldXML typeValue
NamestringDevelopmentLanguage
summarystringThe default locale used when a language is not supplied.
Root
Object
FieldXML typeValue
NamestringRoot
summarystringThe root Instance associated with this localization table.
SourceLocaleId
string
FieldXML typeValue
NamestringSourceLocaleId
Browsableboolfalse
summarystringThe locale of the table's source strings.

Functions

6
GetContents
() → string
FieldXML typeValue
NamestringGetContents
summarystringReturns all localization entries encoded as JSON.
GetEntries
() → Array
FieldXML typeValue
NamestringGetEntries
summarystringReturns an array of localization entry dictionaries.
GetString
(targetLocaleId: string, key: string) → string
FieldXML typeValue
NamestringGetString
summarystringReturns the translation for a locale and key.
RemoveKey
(key: string) → void
FieldXML typeValue
NamestringRemoveKey
summarystringRemoves the entry with the given key.
SetContents
(contents: string) → void
FieldXML typeValue
NamestringSetContents
summarystringReplaces all entries from a JSON localization table.
SetEntry
(key: string, targetLocaleId: string, text: string) → void
FieldXML typeValue
NamestringSetEntry
summarystringSets a translation for a locale and key.