From a8dd218f8e7d224ee0e4bc0dfcbfa0c3f6b80950 Mon Sep 17 00:00:00 2001 From: Martijn Kalf <39184089+typendetinus@users.noreply.github.com> Date: Wed, 14 Jun 2023 17:22:56 +0200 Subject: [PATCH] feat(i18n): add dutch translation (#211) Co-authored-by: Martijn Kalf --- README.md | 1 + src/localize.js | 2 ++ src/translations/nl.json | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 src/translations/nl.json diff --git a/README.md b/README.md index e46e3db..627f01b 100644 --- a/README.md +++ b/README.md @@ -236,6 +236,7 @@ This card supports translations. Please, help to add more translations and impro - Italiano (Italian) - 繁體中文 (Traditional Chinese) - Čeština (Czech) +- Dutch (Netherlands) - [_Your language?_][add-translation] ## Supported models diff --git a/src/localize.js b/src/localize.js index a9cd185..65df3dd 100644 --- a/src/localize.js +++ b/src/localize.js @@ -15,6 +15,7 @@ import * as ca from './translations/ca.json'; import * as ru from './translations/ru.json'; import * as it from './translations/it.json'; import * as cs from './translations/cs.json'; +import * as nl from './translations/nl.json'; var languages = { en, @@ -31,6 +32,7 @@ var languages = { ru, it, cs, + nl, }; const DEFAULT_LANG = 'en'; diff --git a/src/translations/nl.json b/src/translations/nl.json new file mode 100644 index 0000000..0f9c405 --- /dev/null +++ b/src/translations/nl.json @@ -0,0 +1,40 @@ +{ + "common": { + "name": "Luchtververser Card", + "description": "Luchtververser card stelt je in staat je smart purifier te bedienen.", + "not_available": "Entity is niet beschikbaar", + "toggle_power": "Zet aan/uit" + }, + "state": { + "on": "Aan", + "off": "Uit" + }, + "preset_mode": { + "Auto": "Auto", + "Silent": "Stil", + "Favorite": "Favoriet", + "Fan": "Ventilator" + }, + "error": { + "missing_entity": "Instellen van entity is verplicht!" + }, + "warning": { + "actions_array": "WARNING: 'actions' is hernoemd naar 'shortcuts'" + }, + "editor": { + "entity": "Entity (Verplicht)", + "compact_view": "Compact View", + "compact_view_aria_label_on": "Schakel compact view in", + "compact_view_aria_label_off": "Schakel compact view uit", + "show_name": "Toon Naam", + "show_name_aria_label_on": "Schakel display name in", + "show_name_aria_label_off": "Schakel display name uit", + "show_state": "Toon State", + "show_state_aria_label_on": "Schakel display state in", + "show_state_aria_label_off": "Schakel display state uit", + "show_toolbar": "Toon Toolbar", + "show_toolbar_aria_label_on": "Schakel display toolbar in", + "show_toolbar_aria_label_off": "Schakel display toolbar uit", + "code_only_note": "Let op: Setting actions en stats opties zijn alleen beschikbaar bij het gebruik van de Code Editor." + } +}