fix: i18n runtime error (#1376)
This commit is contained in:
parent
7c9b585a47
commit
d14f15863d
3 changed files with 9 additions and 11 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue