novx
    Preparing search index...

    Class LocaleManager

    The LocaleManager keeps track of the current locale as a behavior subject and knows about the array of supported locales. Interested parties can subscribe to the current value.

    Index

    Constructors

    Properties

    backingStore: LocaleBackingStore
    dirty: boolean = false
    listeners: Listener[] = []
    locale: BehaviorSubject<Locale> = ...
    supportedLocales: string[]

    Methods

    • add the specified listener to the list of listeners that will be informed on every locale change.

      Parameters

      • onLocaleChange: OnLocaleChange

        the listener

      • priority: number = 10

        the priority. Smaller priorities are called earlier.

      Returns () => void