From 0722af3a2feb1a5332083b0b863d1890a77f38d3 Mon Sep 17 00:00:00 2001 From: elhombretecla Date: Wed, 1 Oct 2025 15:53:29 +0200 Subject: [PATCH] :tada: Add translation string to switcher label --- frontend/src/app/main/ui/ds/controls/switcher/switcher.cljs | 4 +--- frontend/translations/en.po | 4 ++++ frontend/translations/es.po | 4 ++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/ds/controls/switcher/switcher.cljs b/frontend/src/app/main/ui/ds/controls/switcher/switcher.cljs index 38b18ba60e..0901eac9ba 100644 --- a/frontend/src/app/main/ui/ds/controls/switcher/switcher.cljs +++ b/frontend/src/app/main/ui/ds/controls/switcher/switcher.cljs @@ -75,9 +75,7 @@ has-label (not (str/blank? label)) effective-aria-label (if has-label (or aria-label label) - ;; TODO: Add translation string - ;; (tr "linea de traduccion") - "Toggle switch") + (tr "ds.switcher.aria-label")) props (mf/spread-props props {:id id :ref ref diff --git a/frontend/translations/en.po b/frontend/translations/en.po index e4f35c9086..b6378fe015 100644 --- a/frontend/translations/en.po +++ b/frontend/translations/en.po @@ -1186,6 +1186,10 @@ msgstr "Detach token" msgid "ds.inputs.token-field.no-active-token-option" msgstr "This token is not available in any active set or theme." +#: src/app/main/ui/ds/controls/switcher/switcher.cljs:78 +msgid "ds.switcher.aria-label" +msgstr "Switcher label" + #: src/app/main/data/auth.cljs:314 msgid "errors.auth-provider-not-allowed" msgstr "Auth provider not allowed for this profile" diff --git a/frontend/translations/es.po b/frontend/translations/es.po index e0830db85d..ca052ff6fd 100644 --- a/frontend/translations/es.po +++ b/frontend/translations/es.po @@ -1198,6 +1198,10 @@ msgstr "Desvincular token" msgid "ds.inputs.token-field.no-active-token-option" msgstr "Este token no está disponible en ningún set ni tema activo." +#: src/app/main/ui/ds/controls/switcher/switcher.cljs:78 +msgid "ds.switcher.aria-label" +msgstr "Etiqueta del switcher" + #: src/app/main/data/auth.cljs:314 msgid "errors.auth-provider-not-allowed" msgstr "El proveedor de autenticación no permitido para este perfil de usuario"