fix: i18n runtime error (#1376)

This commit is contained in:
zxhlyh
2023-10-18 16:00:56 +08:00
committed by GitHub
parent 7c9b585a47
commit d14f15863d
3 changed files with 9 additions and 11 deletions

View File

@@ -33,9 +33,6 @@ import datasetCreationEn from './lang/dataset-creation.en'
import datasetCreationZh from './lang/dataset-creation.zh'
import exploreEn from './lang/explore.en'
import exploreZh from './lang/explore.zh'
import { getLocaleOnClient } from '@/i18n/client'
const localLng = getLocaleOnClient()
const resources = {
'en': {
@@ -88,7 +85,7 @@ i18n.use(initReactI18next)
// init i18next
// for all options read: https://www.i18next.com/overview/configuration-options
.init({
lng: localLng,
lng: undefined,
fallbackLng: 'en',
// debug: true,
resources,