From a5b93630c8322e7d18578809640ce9c6ec0dc891 Mon Sep 17 00:00:00 2001 From: Alex <66680498+CMBoii@users.noreply.github.com> Date: Sun, 13 Jun 2021 20:35:34 +0200 Subject: [PATCH] Add Spanish language (#510) * New translations en-US.json (Spanish) * Add Spanish language Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com> --- frontend/src/locales/messages/es-ES.json | 18 +++++++++--------- frontend/src/plugins/vuetify.js | 2 ++ frontend/src/store/modules/language.js | 4 ++++ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/frontend/src/locales/messages/es-ES.json b/frontend/src/locales/messages/es-ES.json index 5667420022b3..d76f212dfee9 100644 --- a/frontend/src/locales/messages/es-ES.json +++ b/frontend/src/locales/messages/es-ES.json @@ -96,7 +96,7 @@ "saturday": "Sábado", "save": "Guardar", "settings": "Ajustes", - "share": "Share", + "share": "Compartir", "shuffle": "Aleatorio", "sort": "Ordenar", "sort-alphabetically": "Alfabéticamente", @@ -118,7 +118,7 @@ "view": "Ver", "wednesday": "Miércoles", "yes": "Si", - "more": "More" + "more": "Más" }, "group": { "are-you-sure-you-want-to-delete-the-group": "Por favor, confirma que deseas eliminar {groupName}", @@ -180,8 +180,8 @@ }, "new-recipe": { "bulk-add": "Añadir en masa", - "error-title": "Looks Like We Couldn't Find Anything", - "error-details": "Only websites containing ld+json or microdata can be imported imported by Mealie. Most major recipe websites support this data structure. If your site cannot be imported but there is json data in the log, please submit a github issue with the URL and data.", + "error-title": "Parece que no hemos podido encontrar nada", + "error-details": "Sólo los sitios web que contengan ld+json o microdatos pueden ser importados por Mealie. La mayoría de los sitios web de recetas principales soportan esta estructura de datos. Si su sitio no puede ser importado pero hay datos json en el registro, por favor envíe un problema a github con la URL y los datos.", "from-url": "Importar una receta", "paste-in-your-recipe-data-each-line-will-be-treated-as-an-item-in-a-list": "Pegar los datos de tu receta. Cada línea será tratada como un elemento de una lista", "recipe-url": "URL de la receta", @@ -217,7 +217,7 @@ "ingredient": "Ingrediente", "ingredients": "Ingredientes", "instructions": "Instrucciones", - "share-recipe-message": "I wanted to share my {0} recipe with you.", + "share-recipe-message": "Quería compartir mi receta {0} contigo.", "key-name-required": "Nombre de clave requerido", "landscape-view-coming-soon": "Vista apaisada (Próximamente)", "milligrams": "miligramos", @@ -253,8 +253,8 @@ "total-time": "Tiempo total", "unable-to-delete-recipe": "No se puede eliminar la receta", "view-recipe": "Ver Receta", - "add-to-favorites": "Add to Favorites", - "remove-from-favorites": "Remove from Favorites" + "add-to-favorites": "Añadir a favoritos", + "remove-from-favorites": "Eliminar de favoritos" }, "search": { "and": "y", @@ -340,8 +340,8 @@ "theme-settings": "Ajustes del tema", "theme-updated": "Tema actualizado", "warning": "Aviso", - "switch-to-light-mode": "Switch to light mode", - "switch-to-dark-mode": "Switch to dark mode" + "switch-to-light-mode": "Cambiar a modo claro", + "switch-to-dark-mode": "Cambiar a modo oscuro" }, "token": { "active-tokens": "TOKENS ACTIVOS", diff --git a/frontend/src/plugins/vuetify.js b/frontend/src/plugins/vuetify.js index ab4d1a736dad..7e585fbc427b 100644 --- a/frontend/src/plugins/vuetify.js +++ b/frontend/src/plugins/vuetify.js @@ -5,6 +5,7 @@ Vue.use(Vuetify); import de from "vuetify/es5/locale/de"; import en from "vuetify/es5/locale/en"; +import es from "vuetify/es5/locale/es"; import fr from "vuetify/es5/locale/fr"; import nl from "vuetify/es5/locale/nl"; import pl from "vuetify/es5/locale/pl"; @@ -43,6 +44,7 @@ const vuetify = new Vuetify({ locales: { "de-DE": de, "en-US": en, + "es-ES": es, "fr-FR": fr, "nl-NL": nl, "pl-PL": pl, diff --git a/frontend/src/store/modules/language.js b/frontend/src/store/modules/language.js index 3d784d027d98..37e0ee4ef4c4 100644 --- a/frontend/src/store/modules/language.js +++ b/frontend/src/store/modules/language.js @@ -13,6 +13,10 @@ const state = { name: "Deutsch (German)", value: "de-DE", }, + { + name: "Español (Spanish)", + value: "es-ES", + }, { name: "Français (French)", value: "fr-FR",