From 2b46bd5a15d975cde3aa4029ce626617508b4bfe Mon Sep 17 00:00:00 2001 From: Cesar Gomez <65884507+mrcego@users.noreply.github.com> Date: Thu, 1 Dec 2022 02:41:59 -0500 Subject: [PATCH] feat(i18n): adding spanish to language selector (#266) --- components/publish/PublishWidget.vue | 2 +- locales/en-US.json | 14 ++++++++++++++ locales/es-ES.json | 26 ++++++++++++++++++++++---- nuxt.config.ts | 5 +++++ 4 files changed, 42 insertions(+), 5 deletions(-) diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index a3a8c56d..cd702d74 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -173,7 +173,7 @@ const { isOverDropZone } = useDropZone(dropZoneRef, onDrop) diff --git a/locales/en-US.json b/locales/en-US.json index 70578fcf..aac754b9 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -100,6 +100,7 @@ "update_status": "updated their status" }, "placeholder": { + "content_warning": "Write your warning here", "default_1": "What is on your mind?", "reply_to_account": "Reply to {0}", "replying": "Replying", @@ -123,6 +124,19 @@ "posts": "Posts", "posts_with_replies": "Posts & Replies" }, + "time_ago_options": { + "in": "in", + "just_now": "just now", + "last_month": "last month", + "last_week": "last week", + "last_year": "last year", + "next_month": "next month", + "next_week": "next week", + "next_year": "next year", + "tomorrow": "tomorrow", + "week": "week", + "yesterday": "yesterday" + }, "timeline": { "show_new_items": "Show {0} new items" }, diff --git a/locales/es-ES.json b/locales/es-ES.json index e6b9197e..67e87340 100644 --- a/locales/es-ES.json +++ b/locales/es-ES.json @@ -18,7 +18,7 @@ }, "action": { "bookmark": "Añadir marcador", - "boost": "Me gusta", + "boost": "Retootear", "compose": "Componer", "enter_app": "Entrar", "favourite": "Favorito", @@ -87,7 +87,7 @@ "sign_in_desc": "Inicia sesión para seguir perfiles o hashtags, marcar como favorito, compartir and responder a publicaciones, o interactuar desde tu usuario con un servidor diferente." }, "notification": { - "favourited_post": "tu post fue marcado como favorito", + "favourited_post": "marcó tu publicación como favorito", "followed_you": "te ha seguido", "followed_you_count": "{0} personas te siguieron", "missing_type": "MISSING notification.type:", @@ -96,8 +96,10 @@ "update_status": "ha actualizado su estado" }, "placeholder": { + "content_warning": "Escribe tu advertencia aquí", "default_1": "¿En qué estás pensando?", "reply_to_account": "Responder a {0}", + "replying": "Respondiendo", "the_thread": "el hilo" }, "state": { @@ -106,6 +108,11 @@ "loading": "Cargando...", "uploading": "Subiendo..." }, + "status": { + "reblogged": "{0} retooteó", + "spoiler_show_less": "Mostrar menos", + "spoiler_show_more": "Mostrar más" + }, "tab": { "media": "Media", "notifications_all": "Todos", @@ -113,12 +120,23 @@ "posts": "Publicaciones", "posts_with_replies": "Publicaciones y respuestas" }, + "time_ago_options": { + "last_month": "mes pasado", + "last_week": "semana pasada", + "last_year": "año pasado", + "next_month": "próximo mes", + "next_week": "próxima semana", + "next_year": "próximo año", + "tomorrow": "mañana", + "week": "semana", + "yesterday": "ayer" + }, "timeline": { "show_new_items": "Mostrar {0} nuevas publicaciones" }, "title": { - "federated_timeline": "Línea de tiempo Federada", - "local_timeline": "Línea de tiempo Local" + "federated_timeline": "Línea de tiempo federada", + "local_timeline": "Línea de tiempo local" }, "tooltip": { "add_content_warning": "Añadir advertencia de contenido", diff --git a/nuxt.config.ts b/nuxt.config.ts index 9300e466..b0367607 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -104,6 +104,11 @@ export default defineNuxtConfig({ file: 'ja-JP.json', name: '日本語', }, + { + code: 'es-ES', + file: 'es-ES.json', + name: 'Español', + }, ].sort((a, b) => a.code.localeCompare(b.code)), strategy: 'no_prefix', detectBrowserLanguage: false,