Class Language

Simple language (localization) subsystem.

Hierarchy

  • Language

Constructors

Properties

Methods

Constructors

Properties

defaultLang: string = 'en'

Default language.

Used when strings are requested without specifying a language.

defaultModule: string = 'core'

Default module name.

Used when strings are requested without specifying a module.

Methods

  • Add strings for a module and language.

    Parameters

    • module: string

      module name.

    • lang: string

      language identifier.

    • strings: [string, string][] | StringSet

      string setting values.

    Returns void

  • Gets a string for specified key, module and language.

    Parameters

    • key: string

      identifier of the string.

    • Optional module: string

      module name.

    • Optional lang: string

      language identifier.

    Returns undefined | string

    localized string.

Generated using TypeDoc