MAIDR JavaScript API
    Preparing search index...

    Function resolveLocalePackUrl

    • Works out where a locale's pack is served from.

      The packs ship beside maidr.js, so wherever the page loaded that from — a CDN, its own assets, a file:// export — locates them. An explicit window.maidrLocaleBaseUrl wins, for the pages where the bundle's own URL cannot be found or the packs live elsewhere.

      Parameters

      • locale: Locale

        The locale whose pack to locate

      Returns string | null

      The pack's absolute URL, or null when nothing locates it