fix: activation page reload issue after activating (#964)

This commit is contained in:
Matri
2023-08-23 13:54:40 +08:00
committed by GitHub
parent a38412de7b
commit 916d8be0ae
3 changed files with 13 additions and 12 deletions

View File

@@ -3,15 +3,15 @@ import type { Locale } from '@/i18n'
type II18NContext = {
locale: Locale
i18n: Record<string, any>,
setLocaleOnClient: (locale: Locale) => void
i18n: Record<string, any>
setLocaleOnClient: (locale: Locale, reloadPage?: boolean) => void
// setI8N: (i18n: Record<string, string>) => void,
}
const I18NContext = createContext<II18NContext>({
locale: 'en',
i18n: {},
setLocaleOnClient: (lang: Locale) => { }
setLocaleOnClient: (lang: Locale, reloadPage?: boolean) => { },
// setI8N: () => {},
})