Interface representing a locale provider.

interface LocaleProvider {
    canWrite: boolean;
    locale: null | string;
    locale$: Observable<null | string>;
    setLocale(locale: null | string): void;
}

Implemented by

Properties

Methods

Properties

canWrite: boolean

Indicates whether the provider supports writing.

locale: null | string

The current locale.

locale$: Observable<null | string>

Observable that emits the current locale.

Methods

  • Sets the current locale.

    Parameters

    • locale: null | string

      The locale to set.

    Returns void