From 923f1aa4c052b26dab25a27a967bb86a2aeafdfc Mon Sep 17 00:00:00 2001 From: duhow Date: Fri, 28 Jun 2024 11:56:48 +0200 Subject: [PATCH] add languages --- .../cover_time_based/translations/ca.json | 33 ++++++++++++++++++ .../cover_time_based/translations/en.json | 34 ++++++++++++++++++- .../cover_time_based/translations/es.json | 33 ++++++++++++++++++ 3 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 custom_components/cover_time_based/translations/ca.json mode change 120000 => 100644 custom_components/cover_time_based/translations/en.json create mode 100644 custom_components/cover_time_based/translations/es.json diff --git a/custom_components/cover_time_based/translations/ca.json b/custom_components/cover_time_based/translations/ca.json new file mode 100644 index 0000000..84b0d05 --- /dev/null +++ b/custom_components/cover_time_based/translations/ca.json @@ -0,0 +1,33 @@ +{ + "title": "Canvia un commutador a Persiana cronometrada", + "config": { + "step": { + "user": { + "title": "Crea una Persiana cronometrada des d'altres commutadors", + "description": "Escull dos interruptors, commutadors o llums i converteix-los en una Persiana a Home Assistant. Les entitats que escullis s'amagaràn.", + "data": { + "name": "Nom", + "up": "Pujar", + "down": "Baixar", + "time_open": "Temps per obrir la persiana", + "time_close": "Temps per tancar la persiana (opcional)" + }, + "data_description": { + "name": "Nom de la nova persiana a crear.", + "up": "Entitat que farà l'acció de pujar.", + "down": "Entitat que farà l'acció de baixar." + } + } + } + }, + "options": { + "step": { + "init": { + "data": { + "time_open": "Temps per obrir la persiana", + "time_close": "Temps per tancar la persiana (opcional)" + } + } + } + } +} diff --git a/custom_components/cover_time_based/translations/en.json b/custom_components/cover_time_based/translations/en.json deleted file mode 120000 index ebc8e39..0000000 --- a/custom_components/cover_time_based/translations/en.json +++ /dev/null @@ -1 +0,0 @@ -../strings.json \ No newline at end of file diff --git a/custom_components/cover_time_based/translations/en.json b/custom_components/cover_time_based/translations/en.json new file mode 100644 index 0000000..7ac8361 --- /dev/null +++ b/custom_components/cover_time_based/translations/en.json @@ -0,0 +1,33 @@ +{ + "title": "Change device type to a Cover time-based", + "config": { + "step": { + "user": { + "title": "Create a Cover time-based from other entities", + "description": "Pick two switches or lights that you want to show up in Home Assistant as a cover. The original entities will be hidden.", + "data": { + "name": "Name", + "up": "Up", + "down": "Down", + "time_open": "Time to open the cover", + "time_close": "Time to close the cover (optional)" + }, + "data_description": { + "name": "Name of the new cover to create.", + "up": "Entity that will open the cover.", + "down": "Entity that will close the cover." + } + } + } + }, + "options": { + "step": { + "init": { + "data": { + "time_open": "Time to open the cover", + "time_close": "Time to close the cover (optional)" + } + } + } + } +} diff --git a/custom_components/cover_time_based/translations/es.json b/custom_components/cover_time_based/translations/es.json new file mode 100644 index 0000000..1bb030a --- /dev/null +++ b/custom_components/cover_time_based/translations/es.json @@ -0,0 +1,33 @@ +{ + "title": "Cambiar el tipo de interruptor a Persiana temporizada", + "config": { + "step": { + "user": { + "title": "Crear una Persiana temporizada desde otros interruptores", + "description": "Selecciona dos interruptores o luces, y conviertelos en una Persiana en Home Assistant. Las entidades que selecciones quedarán ocultas.", + "data": { + "name": "Nombre", + "up": "Subir", + "down": "Bajar", + "time_open": "Tiempo para abrir la persiana", + "time_close": "Tiempo para cerrar la persiana (opcional)" + }, + "data_description": { + "name": "Nombre de la nueva persiana a crear.", + "up": "Entidad que realiza la acción de subir.", + "down": "Entidad que realiza la acción de bajar." + } + } + } + }, + "options": { + "step": { + "init": { + "data": { + "time_open": "Tiempo para abrir la persiana", + "time_close": "Tiempo para cerrar la persiana (opcional)" + } + } + } + } +}