Merge pull request #38 from Saul-BT/feat/spanish-language

feat: add spanish language
This commit is contained in:
Joel
2024-08-07 17:14:47 +08:00
committed by GitHub
5 changed files with 76 additions and 2 deletions

View File

@ -2,8 +2,10 @@
import i18n from 'i18next'
import { initReactI18next } from 'react-i18next'
import commonEn from './lang/common.en'
import commonEs from './lang/common.es'
import commonZh from './lang/common.zh'
import appEn from './lang/app.en'
import appEs from './lang/app.es'
import appZh from './lang/app.zh'
import toolsEn from './lang/tools.en'
import toolsZh from './lang/tools.zh'
@ -18,6 +20,12 @@ const resources = {
tools: toolsEn,
},
},
'es': {
translation: {
common: commonEs,
app: appEs,
},
},
'zh-Hans': {
translation: {
common: commonZh,