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.
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, afile://export — locates them. An explicitwindow.maidrLocaleBaseUrlwins, for the pages where the bundle's own URL cannot be found or the packs live elsewhere.