Service to manage the current locale for the application.

Constructors

Properties

Accessors

Constructors

Properties

locale$: Observable<string>

Accessors

  • get currentLocale(): string
  • Gets the current locale.

    Returns string

  • set currentLocale(locale: string): void
  • Sets the current locale.

    Parameters

    • locale: string

      The value locale to set.

    Returns void

    the locale is set on all providers that can write. If the locale is not supported, the default locale is set. See LocaleValidatorService.