Class StringTables

Manages string tables used for localizing text. Allows you to add and remove different tables and change the active language.

Constructors

Accessors

  • get activeLanguage(): EnumValue<Language, number>
  • Determines the currently active language. Any newly created StringDatas will use this value.

    Returns EnumValue<Language, number>

  • set activeLanguage(value): void
  • Parameters

    Returns void

Methods

  • Returns the string table with the specified id. If the table doesn't exist new one is created.

    Parameters

    • id: number

      Identifier of the string table.

    Returns StringTable

    String table with the specified identifier.

  • Removes the string table with the specified id.

    Parameters

    • id: number

      Identifier of the string table.

    Returns void

  • Registers a new string table or replaces an old one at the specified id.

    Parameters

    Returns void