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

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

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'];