fix: i18n runtime error (#1376)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user