fix: load i18n for /error page

This commit is contained in:
Aarni Koskela
2024-05-13 18:00:30 +03:00
parent 8e5f96e4c3
commit df167d8785
2 changed files with 11 additions and 9 deletions
+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'];