forked from tuvn86/webapp-conversation
Add Japanese language settings to i18n”
This commit is contained in:
parent
8d21cbc2da
commit
7f24387eef
5 changed files with 184 additions and 1 deletions
|
|
@ -4,11 +4,14 @@ import { initReactI18next } from 'react-i18next'
|
|||
import commonEn from './lang/common.en'
|
||||
import commonEs from './lang/common.es'
|
||||
import commonZh from './lang/common.zh'
|
||||
import commonJa from './lang/common.ja'
|
||||
import appEn from './lang/app.en'
|
||||
import appEs from './lang/app.es'
|
||||
import appZh from './lang/app.zh'
|
||||
import appJa from './lang/app.ja'
|
||||
import toolsEn from './lang/tools.en'
|
||||
import toolsZh from './lang/tools.zh'
|
||||
import toolsJa from './lang/tools.ja'
|
||||
import type { Locale } from '.'
|
||||
|
||||
const resources = {
|
||||
|
|
@ -34,6 +37,14 @@ const resources = {
|
|||
tools: toolsZh,
|
||||
},
|
||||
},
|
||||
'ja': {
|
||||
translation: {
|
||||
common: commonJa,
|
||||
app: appJa,
|
||||
// tools
|
||||
tools: toolsJa,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
i18n.use(initReactI18next)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue