Timothy Jaeryang Baek 1 개월 전
부모
커밋
edf94d732b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/routes/+layout.svelte

+ 1 - 1
src/routes/+layout.svelte

@@ -476,7 +476,7 @@
 		// Initialize i18n even if we didn't get a backend config,
 		// so `/error` can show something that's not `undefined`.
 
-		initI18n();
+		initI18n(localStorage?.locale);
 		if (!localStorage.locale) {
 			const languages = await getLanguages();
 			const browserLanguages = navigator.languages