mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-08-18 06:10:32 +00:00
`import.meta.glob` now generates lazy loaders for the locale JSON modules rather than hashed asset URLs, so `Backend.read` awaits an `import()` instead of doing a `fetch`. This puts translation loading under the `script-src` CSP directive instead of `connect-src`, and lets the browser preload them as modules, which the `<link rel="preload" as="fetch">` hint never really did because of the credentials-mode mismatch. Dynamic imports are cached for the lifetime of the page, so locale hot-reloading now triggers a full page reload in dev instead of asking i18next to re-read its resources.