Options
All
  • Public
  • Public/Protected
  • All
Menu

A class for managing locales.

abstract

Hierarchy

  • Locales

Index

Constructors

Accessors

Methods

  • resolve(locale: LocaleSpecifier, opts?: { strict?: boolean }): Locale
  • Tries to resolve a locale. It first tries to find the locale in the repository. If find operation fails, it tries to create a RuntimeLocale (a locale created by using javascript Intl API). If creating RuntimeLocale fails, this method returns undefined or throws an error (based on "opts.strict" parameter).

    static

    Parameters

    • locale: LocaleSpecifier
    • Optional opts: { strict?: boolean }
      • Optional strict?: boolean

    Returns Locale

Generated using TypeDoc