forked from tuvn86/webapp-conversation
Update i18next-config.ts
This commit is contained in:
parent
8d21cbc2da
commit
1c12b1dce3
1 changed files with 11 additions and 0 deletions
|
|
@ -4,11 +4,14 @@ import { initReactI18next } from 'react-i18next'
|
||||||
import commonEn from './lang/common.en'
|
import commonEn from './lang/common.en'
|
||||||
import commonEs from './lang/common.es'
|
import commonEs from './lang/common.es'
|
||||||
import commonZh from './lang/common.zh'
|
import commonZh from './lang/common.zh'
|
||||||
|
import commonVi from './lang/common.vi'
|
||||||
import appEn from './lang/app.en'
|
import appEn from './lang/app.en'
|
||||||
import appEs from './lang/app.es'
|
import appEs from './lang/app.es'
|
||||||
import appZh from './lang/app.zh'
|
import appZh from './lang/app.zh'
|
||||||
|
import appVi from './lang/app.vi'
|
||||||
import toolsEn from './lang/tools.en'
|
import toolsEn from './lang/tools.en'
|
||||||
import toolsZh from './lang/tools.zh'
|
import toolsZh from './lang/tools.zh'
|
||||||
|
import toolsVi from './lang/tools.vi'
|
||||||
import type { Locale } from '.'
|
import type { Locale } from '.'
|
||||||
|
|
||||||
const resources = {
|
const resources = {
|
||||||
|
|
@ -34,6 +37,14 @@ const resources = {
|
||||||
tools: toolsZh,
|
tools: toolsZh,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'vi': {
|
||||||
|
translation: {
|
||||||
|
common: commonVi,
|
||||||
|
app: appVi,
|
||||||
|
// tools
|
||||||
|
tools: toolsVi,
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
i18n.use(initReactI18next)
|
i18n.use(initReactI18next)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue