Export I18n APIs

Constructors

Methods

  • Returns boolean

  • Parameters

    • config: Record<string, any>

      Configuration of the I18n

    Returns I18nConfig

    Static

    Method

    Configure I18n part

  • Returns void

    Static

    Method

    Create an instance of I18n for the library

  • Parameters

    • key: string
    • Optional defVal: string

      Default value

    Returns any

    Static

    Method

    Get value

  • Returns string

  • Parameters

    • vocabularies: Record<string, Record<string, string>>

      Object that has language as key, vocabularies of each language as value

    Returns void

    Static

    Method

    Add vocabularies for one language

  • Parameters

    • language: string

      Language of the dictionary

    • vocabularies: Record<string, string>

      Object that has key-value as dictionary entry

    Returns void

    Static

    Method

    Add vocabularies for one language

  • Parameters

    • lang: string

    Returns void

    Static

    Method

    Explicitly setting language