feat: add spanish language

This commit is contained in:
Saul Blanco Tejero
2023-12-07 21:20:21 +01:00
parent c8f730208d
commit f7ff288ff1
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 type { Locale } from '.'
@ -14,6 +16,12 @@ const resources = {
app: appEn,
},
},
'es': {
translation: {
common: commonEs,
app: appEs,
},
},
'zh-Hans': {
translation: {
common: commonZh,