Class LocalizationService

Index

Accessors

Methods

  • Parameters

    • locale: string

    Returns Promise<string>

  • Ensures that any in-flight locale activation request finishes (successfully or not) before this promise resolves. If a locale activation is interrupted by a newer activation request, this method will still resolve once the current (or most recently started) activation completes. It never rejects.

    Returns Promise<string>

    the currently active locale after any in-flight activation has settled.

  • Returns string

  • Parameters

    • key: string

    Returns string

  • Returns boolean

  • Beta

    Registers a locale loader that provides string resources for one or more locales. Once registered, Reveal will delegate locale resolution to this loader before falling back to built-in strings. Has no effect on locales that have already been loaded.

    Parameters

    • loader: LocaleLoader

      The locale loader to register. Must implement supportsLocale(locale) and loadLocale(locale).

    Returns void