fix: load i18n for /error page
This commit is contained in:
1 parent
8e5f96e4c3
commit
df167d8785
2 files changed
+11
-9
No files matched your search
@@ -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'];
|
||||
|
||||
Reference in new issue
Block a user