Merge pull request #2236 from akx/error-page-fix

fix: load i18n before showing error page
This commit is contained in:
Timothy Jaeryang Baek authored and GitHub committed 2024-05-13 10:58:31 -10:00
commit 4f87512bbc
2 files changed
+11 -9

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ const createIsLoadingStore = (i18n: i18nType) => {
return isLoading;
};
export const initI18n = (defaultLocale: string) => {
export const initI18n = (defaultLocale: string | undefined) => {
let detectionOrder = defaultLocale
? ['querystring', 'localStorage']
: ['querystring', 'localStorage', 'navigator'];