i18n(es): add Spanish translation (#8)
This commit is contained in:
parent
758f6b4ac4
commit
cfc9d18d50
13
locales/es.json
Normal file
13
locales/es.json
Normal 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"
|
||||||
|
}
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user