From e19eccbda37bc4ed4ae02958bfc6f128b3a6b22b Mon Sep 17 00:00:00 2001 From: Roy Eden Date: Fri, 31 May 2024 20:32:32 -0300 Subject: [PATCH 1/5] Create `es/ui.ts` --- src/i18n/dictionaries/es/ui.ts | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/i18n/dictionaries/es/ui.ts diff --git a/src/i18n/dictionaries/es/ui.ts b/src/i18n/dictionaries/es/ui.ts new file mode 100644 index 000000000..4e66955a8 --- /dev/null +++ b/src/i18n/dictionaries/es/ui.ts @@ -0,0 +1,47 @@ +export default { + // hero + "hero.title": "UIs sin esfuerzo con precisión reactiva.", + "hero.subtitle": "SolidJS es un moderno framework de Javascript para la web actual.", + "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": "Ciclos 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; From e22b67efc65c944a499f744a4dfe351fc46ff832 Mon Sep 17 00:00:00 2001 From: Roy Eden Date: Fri, 31 May 2024 20:34:44 -0300 Subject: [PATCH 2/5] Add generic spanish into `lunaria.config.json` --- lunaria.config.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lunaria.config.json b/lunaria.config.json index 63fd45cd1..c2bb99dc1 100644 --- a/lunaria.config.json +++ b/lunaria.config.json @@ -25,6 +25,10 @@ { "label": "Português do Brasil", "lang": "pt-br" + }, + { + "label": "Español", + "lang": "es" } ], "outDir": "./public/i18n-status", From a650440ab54f014935818ab17a27978bf593b8da Mon Sep 17 00:00:00 2001 From: Roy Eden Date: Fri, 31 May 2024 20:36:47 -0300 Subject: [PATCH 3/5] Add spanish into `dictionaries/index.ts` --- src/i18n/dictionaries/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/i18n/dictionaries/index.ts b/src/i18n/dictionaries/index.ts index 49c9014e3..e0da19c95 100644 --- a/src/i18n/dictionaries/index.ts +++ b/src/i18n/dictionaries/index.ts @@ -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", }; From ba84dea54ae333e464dc89cd9763166c349b8a81 Mon Sep 17 00:00:00 2001 From: Roy Eden Date: Fri, 31 May 2024 20:41:00 -0300 Subject: [PATCH 4/5] Minor translation adjustments --- src/i18n/dictionaries/es/ui.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/i18n/dictionaries/es/ui.ts b/src/i18n/dictionaries/es/ui.ts index 4e66955a8..a40933288 100644 --- a/src/i18n/dictionaries/es/ui.ts +++ b/src/i18n/dictionaries/es/ui.ts @@ -1,7 +1,7 @@ export default { // hero - "hero.title": "UIs sin esfuerzo con precisión reactiva.", - "hero.subtitle": "SolidJS es un moderno framework de Javascript para la web actual.", + "hero.title": "UIs sin esfuerzo, con precisión reactiva.", + "hero.subtitle": "SolidJS es un moderno framework de Javascript para la web de hoy.", "hero.button.primary": "Comenzar ahora", "hero.button.secondary": "Unirse a la comunidad", @@ -19,7 +19,7 @@ export default { "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": "Ciclos de vida", + "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", From 8803bf7e2495ac10729c694b95d297180e7e2651 Mon Sep 17 00:00:00 2001 From: Roy Eden Date: Sun, 25 Aug 2024 20:22:40 -0300 Subject: [PATCH 5/5] Update ui.ts --- src/i18n/dictionaries/es/ui.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/dictionaries/es/ui.ts b/src/i18n/dictionaries/es/ui.ts index a40933288..d88080e54 100644 --- a/src/i18n/dictionaries/es/ui.ts +++ b/src/i18n/dictionaries/es/ui.ts @@ -1,7 +1,7 @@ export default { // hero "hero.title": "UIs sin esfuerzo, con precisión reactiva.", - "hero.subtitle": "SolidJS es un moderno framework de Javascript para la web de hoy.", + "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",