MAIDR JavaScript API
    Preparing search index...

    Function registerLocale

    • Adds a dictionary to the registry.

      When the dictionary is the one the active locale has been waiting for, listeners are told, so every open dialog and the pre-activation instruction re-render out of English and into the reader's language. A dictionary for a locale MAIDR does not know is ignored with a warning rather than thrown, since it arrives from a script the page author chose.

      Parameters

      • locale: Locale

        The locale the dictionary speaks

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

        Its messages, one per English key

      Returns void