fix: activation page reload issue after activating (#964)
This commit is contained in:
parent
a38412de7b
commit
916d8be0ae
3 changed files with 13 additions and 12 deletions
|
|
@ -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: () => {},
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue