Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(translation): Add spanish UI translations #762

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lunaria.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
{
"label": "Português do Brasil",
"lang": "pt-br"
},
{
"label": "Español",
"lang": "es"
}
],
"outDir": "./public/i18n-status",
Expand Down
47 changes: 47 additions & 0 deletions src/i18n/dictionaries/es/ui.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
export default {
// hero
"hero.title": "UIs sin esfuerzo, con precisión reactiva.",
"hero.subtitle": "Solid es un moderno framework de JavaScript para la web de hoy.",
"hero.button.primary": "Comenzar ahora",
"hero.button.secondary": "Unirse a la comunidad",

// main navigation
"main.nav.tab.learn": "Aprenda",
"main.nav.tab.reference": "Referencia",
"main.nav.section.concepts": "Conceptos",
"main.nav.section.components": "Componentes",
"main.nav.section.control.flow": "Flujo de control",
"main.nav.section.derived.values": "Valores derivados",
"main.nav.section.routing": "Ruteo",
"main.nav.section.advanced.concepts": "Conceptos avanzados",
"main.nav.section.guides": "Guías",
"main.nav.section.configuration": "Configuración",
"main.nav.section.basic.reactivity": "Reactividad básica",
"main.nav.section.component.apis": "APIs de componentes",
"main.nav.section.jsx.attributes": "Atributos de JSX",
"main.nav.section.lifecycle": "Ciclo de vida",
"main.nav.section.reactive.utilities": "Utilidades reactivas",
"main.nav.section.rendering": "Renderizado",
"main.nav.section.secondary.primitives": "Primitivas secundarias",
"main.nav.section.stores": "Stores",
"main.nav.section.solid.router": "Solid-Router",
"main.nav.section.solid.router.components": "Componentes",
"main.nav.section.solid.router.data.apis": "APIs de datos",
"main.nav.section.solid.router.load.functions": "Funciones de carga",
"main.nav.section.solid.router.primitives": "Primitivas",
"main.nav.no.routes": "No se encontró la ruta buscada",

// ToC
"toc.this.page": "En esta página",
"toc.overview": "Sumario",
"contribute.title": "Contribuya",
"contribute.edit": "Editar esta página",
"contribute.report": "Reportar un error en esta página",

// pagination
"pagination.next": "Siguiente",
"pagination.previous": "Anterior",

// 404
"missing.translation": "Esta sección todavía no fue traducida",
} as const;
3 changes: 3 additions & 0 deletions src/i18n/dictionaries/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import english from "./en/ui";
import ptbr from "./pt-br/ui";
import es from "./es/ui";

export const dictionaries = {
default: english,
// "pt-br": ptbr,
// es,
};

export const languages: { [key: string]: string } = {
en: "English",
// "pt-br": "Português do Brasil",
// es: "Español",
};