Utility class to translate keys to values based on a XML file.

Constructors

Methods

Constructors

  • Parameters

    • lang: string

      Language name to get the translations for

    • xml: XMLNode

      The root node of the XML file containing the translations

    Returns Translator

    A new Translator object

Methods

  • Parameters

    • key: string

    Returns string