From 957f34d5f09aa654e17c3cd904ed5e3a5fd119ce Mon Sep 17 00:00:00 2001 From: Roger Pons Date: Tue, 9 Mar 2021 10:38:13 +0100 Subject: [PATCH] Added Catalan translation --- README.md | 1 + src/localize.js | 2 ++ src/translations/ca.json | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 src/translations/ca.json diff --git a/README.md b/README.md index 6b2e161..b8a7c5e 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,7 @@ This card supports translations. Please, help to add more translations and impro - Български (Bulgarian) - 简体中文 (Simplified Chinese) - Deutsch (German) +- Català (Catalan) - [_Your language?_][add-translation] ## Supported models diff --git a/src/localize.js b/src/localize.js index 7cd3f3a..6342b0b 100644 --- a/src/localize.js +++ b/src/localize.js @@ -10,6 +10,7 @@ import * as pl from './translations/pl.json'; import * as bg from './translations/bg.json'; import * as zh from './translations/zh.json'; import * as de from './translations/de.json'; +import * as ca from './translations/ca.json'; var languages = { en, @@ -21,6 +22,7 @@ var languages = { bg, zh, de, + ca, }; const DEFAULT_LANG = 'en'; diff --git a/src/translations/ca.json b/src/translations/ca.json new file mode 100644 index 0000000..a88a924 --- /dev/null +++ b/src/translations/ca.json @@ -0,0 +1,38 @@ +{ + "common": { + "name": "Purifier Card", + "description": "Purifier card us permet controlar el purificador intel·ligent.", + "not_available": "L'entitat no està disponible", + "toggle_power": "Encendre/apagar" + }, + "state": { + "on": "Encès", + "off": "Apagat" + }, + "speed": { + "Auto": "Auto", + "Silent": "Silenciós", + "Favorite": "Favorit", + "Fan": "Ventilador" + }, + "error": { + "missing_entity": "Cal especificar una entitat.", + "xiaomi_miio_level_without_speed": "es requereix la velocitat juntament amb la propietat xiaomi_miio_favorite_level." + }, + "editor": { + "entity": "Entitat (Requerit)", + "compact_view": "Visualització comptacta", + "compact_view_aria_label_on": "Activar visualització compacta", + "compact_view_aria_label_off": "Desactivar visualització compacta", + "show_name": "Mostrar nom", + "show_name_aria_label_on": "Mostra nom", + "show_name_aria_label_off": "Amaga nom", + "show_state": "Mostrar estat", + "show_state_aria_label_on": "Mostra estat", + "show_state_aria_label_off": "Amaga estat", + "show_toolbar": "Mostrar barra d'eines", + "show_toolbar_aria_label_on": "Mostra barra d'eines", + "show_toolbar_aria_label_off": "Amaga barra d'eines", + "code_only_note": "Nota: Configuració de les accions i estadístiques només disponible des de l'Editor de Codi." + } +}