create i18n files, initiate with en and es locales
This commit is contained in:
parent
7f87284ca6
commit
889102af2b
3 changed files with 69 additions and 0 deletions
13
src/i18n/index.ts
Normal file
13
src/i18n/index.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
import { createI18n } from 'vue-i18n'
|
||||||
|
import en from './locales/en'
|
||||||
|
import es from './locales/es'
|
||||||
|
|
||||||
|
export const i18n = createI18n({
|
||||||
|
legacy: false,
|
||||||
|
locale: 'en',
|
||||||
|
fallbackLocale: 'en',
|
||||||
|
messages: {
|
||||||
|
en,
|
||||||
|
es
|
||||||
|
}
|
||||||
|
})
|
||||||
28
src/i18n/locales/en.ts
Normal file
28
src/i18n/locales/en.ts
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
export default {
|
||||||
|
nav: {
|
||||||
|
home: 'Home',
|
||||||
|
directory: 'Directory',
|
||||||
|
faq: 'FAQ'
|
||||||
|
},
|
||||||
|
home: {
|
||||||
|
title: 'Find Bitcoin Lightning Payments',
|
||||||
|
subtitle: 'Discover local businesses, services, and venues that accept Bitcoin Lightning payments.',
|
||||||
|
browse: 'Browse Directory',
|
||||||
|
learnMore: 'Learn More'
|
||||||
|
},
|
||||||
|
directory: {
|
||||||
|
search: 'Search...',
|
||||||
|
categories: {
|
||||||
|
all: 'All',
|
||||||
|
restaurant: 'Restaurants',
|
||||||
|
taxi: 'Taxis',
|
||||||
|
lancha: 'Lanchas',
|
||||||
|
retail: 'Retail',
|
||||||
|
other: 'Other'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
poweredBy: 'Powered by',
|
||||||
|
donate: 'Donate'
|
||||||
|
}
|
||||||
|
}
|
||||||
28
src/i18n/locales/es.ts
Normal file
28
src/i18n/locales/es.ts
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
export default {
|
||||||
|
nav: {
|
||||||
|
home: 'Inicio',
|
||||||
|
directory: 'Directorio',
|
||||||
|
faq: 'Preguntas'
|
||||||
|
},
|
||||||
|
home: {
|
||||||
|
title: 'Encuentra Pagos Bitcoin Lightning',
|
||||||
|
subtitle: 'Descubre negocios locales, servicios y lugares que aceptan pagos Bitcoin Lightning.',
|
||||||
|
browse: 'Explorar Directorio',
|
||||||
|
learnMore: 'Aprende Más'
|
||||||
|
},
|
||||||
|
directory: {
|
||||||
|
search: 'Buscar...',
|
||||||
|
categories: {
|
||||||
|
all: 'Todos',
|
||||||
|
restaurant: 'Restaurantes',
|
||||||
|
taxi: 'Taxis',
|
||||||
|
lancha: 'Lanchas',
|
||||||
|
retail: 'Tiendas',
|
||||||
|
other: 'Otros'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
poweredBy: 'Desarrollado con',
|
||||||
|
donate: 'Donar'
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue