We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73a77ab commit edf94d7Copy full SHA for edf94d7
src/routes/+layout.svelte
@@ -476,7 +476,7 @@
476
// Initialize i18n even if we didn't get a backend config,
477
// so `/error` can show something that's not `undefined`.
478
479
- initI18n();
+ initI18n(localStorage?.locale);
480
if (!localStorage.locale) {
481
const languages = await getLanguages();
482
const browserLanguages = navigator.languages
0 commit comments