MAIDR JavaScript API
    Preparing search index...

    Function registerLocalePack

    • Offers a dictionary to whichever MAIDR bundle is on the page, now or later.

      This is the whole of what a locale pack does. It imports nothing from the core bundle, which is what keeps a pack to the size of its dictionary.

      Parameters

      • locale: Locale

        The locale the dictionary speaks

      • messages: Readonly<Record<MessageKey, string>>

        Its messages, one per English key

      Returns void