Supports the localization of this application.

This uses an Observable as it recognizes the change of Language and notifies its observers.

Implements

Constructors

Properties

current: any = null
currentLocale: string = 'en_US'
fallback: any = null
localeData: {} = {}
locales: string[] = ...
observable: any = null
resolvers: any[] = []
scrollPos: number = 0

Methods

  • The basic load method. Reads a language file given by its language code.

    Parameters

    • langCode: string

    Returns Promise<any>

  • Assembles the content of the Language selection dialog using the existing language files.

    Returns Promise<string>

  • The main load method.

    Loads the fallback variant for en_US and the given languages language files and stores them in this instance. Notifies observers about this event.

    Parameters

    • langCode: string

    Returns Promise<void>