mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 19:06:51 +08:00
Feat/install process refinement (#3982)
This commit is contained in:
@@ -8,13 +8,13 @@ import { getLanguage } from '@/i18n/language'
|
||||
type II18NContext = {
|
||||
locale: Locale
|
||||
i18n: Record<string, any>
|
||||
setLocaleOnClient: (locale: Locale, reloadPage?: boolean) => void
|
||||
setLocaleOnClient: (_lang: Locale, _reloadPage?: boolean) => void
|
||||
}
|
||||
|
||||
const I18NContext = createContext<II18NContext>({
|
||||
locale: 'en-US',
|
||||
i18n: {},
|
||||
setLocaleOnClient: (lang: Locale, reloadPage?: boolean) => { },
|
||||
setLocaleOnClient: (_lang: Locale, _reloadPage?: boolean) => { },
|
||||
})
|
||||
|
||||
export const useI18N = () => useContext(I18NContext)
|
||||
|
||||
Reference in New Issue
Block a user