mirror of
https://github.com/MeshCore-Beacon/beacon-web.git
synced 2026-12-06 09:44:45 +00:00
English stays in the main bundle as the fallback; French and Swedish become their own chunks, fetched by an i18next backend the first time they're used. The runtime-env chunk drops from 147.00 kB (43.93 kB gzip) to 83.37 kB (27.51 kB gzip). The picker's native names come from the catalogs at build time, so listing a language doesn't load it. changeLanguage() loads the catalog before it switches, so the UI goes from one complete language to the next. A saved non-English choice delays the first render until its catalog is in rather than painting English and switching. App: no change; it ships its locales as bundled assets read from rootBundle and has no web image.