i18n(es): add Spanish translation (#8)

This commit is contained in:
buzz-js 2020-08-20 18:45:19 +02:00 committed by GitHub
parent 758f6b4ac4
commit cfc9d18d50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

13
locales/es.json Normal file
View File

@ -0,0 +1,13 @@
{
"button": {
"back": "Atrás",
"go": "GO"
},
"intro": {
"desc": "Plantilla de Inicio de Vite Dogmática",
"dynamic-route": "Demo de ruta dinámica",
"hi": "Hola, {name}!",
"whats-your-name": "¿Cómo te llamas?"
},
"not-found": "No se ha encontrado"
}

View File

@ -1,11 +1,13 @@
import en from '../locales/en.json' import en from '../locales/en.json'
import zhCN from '../locales/zh-CN.json' import zhCN from '../locales/zh-CN.json'
import fr from '../locales/fr.json' import fr from '../locales/fr.json'
import es from '../locales/es.json'
export const messages = { export const messages = {
en, en,
'zh-CN': zhCN, 'zh-CN': zhCN,
fr, fr,
es,
} }
export const locales = Object.keys(messages) export const locales = Object.keys(messages)