Service to validate and retrieve supported locales. This is used by the LocaleService to ensure that the locale selected is one that is supported.

Constructors

Methods

  • Retrieves the supported locale that matches or is a parent of the given locale.

    Parameters

    • locale: string

      The locale string to validate.

    Returns null | string

    • The supported locale string.