From 0376dc09d54551b9221fcf545c08ffcbee79f3c7 Mon Sep 17 00:00:00 2001 From: Alexandre Luini <2921969+aluini@users.noreply.github.com> Date: Wed, 10 Mar 2021 16:49:40 +0100 Subject: [PATCH] add french plugin language --- CHANGELOG.md | 5 ++++- README.md | 8 ++++---- accessories/koboldVacuumRobot.js | 15 ++++++++++++++- config.schema.json | 8 +++++++- package.json | 8 +++++++- 5 files changed, 36 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8fcf5b..82055a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -123,4 +123,7 @@ * Added possibility to toggle between languages (English/German) in Homebridge UI Plugin Settings ## 0.8.1 -* Include Robot name in Homekit battery service name \ No newline at end of file +* Include Robot name in Homekit battery service name + +## 0.8.2 +* Add French plugin language (for example, this gives you a "Aspirer la cuisine" Siri command for a zone called "La cuisine") diff --git a/README.md b/README.md index cb2594a..85ccb99 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ The interaction with the Server is handled by the underlying [node-kobold-contro - Automatic or periodic refresh of robot state - Multiple robots -- German or English Language Setting +- German, English or French Language Setting > 2 You can send the robot from one room to another as well. He will return to the base, wait there some seconds and then starts cleaning the next room. @@ -45,7 +45,7 @@ The interaction with the Server is handled by the underlying [node-kobold-contro Add the following information to your config file. Change the values for email and password. -### Simple +### Simple ```json "platforms": [ @@ -95,7 +95,7 @@ curl -X "POST" "https://mykobold.eu.auth0.com/oauth/token" \ From the output, you want to copy the `id_token` value. -The `language` can be `de` for German, or `en` for English. +The `language` can be `de` for German, `en` for English, or `fr` for French. ### Advanced @@ -124,4 +124,4 @@ List of plugin features that you don't want to use in homekit (e.g. `dock`, `doc ## Tested robots -- Vorwerk Kobold VR300 +- Vorwerk Kobold VR300 diff --git a/accessories/koboldVacuumRobot.js b/accessories/koboldVacuumRobot.js index 0be1c3d..06b16af 100644 --- a/accessories/koboldVacuumRobot.js +++ b/accessories/koboldVacuumRobot.js @@ -64,6 +64,19 @@ function KoboldVacuumRobotAccessory(platform, robotObject) "findMe": "Finde mich", "cleanSpot": "Spot Reinigung", "battery": "Batterie" + }, + 'fr': { + "clean": "Aspirer", + "clean the": "Aspirer", + "goToDock": "Retour à la base", + "dockState": "Sur la base", + "eco": "Eco mode", + "noGoLines": "Lignes NoGo", + "extraCare": "Extra Care", + "schedule": "Planifier", + "findMe": "Me retrouver", + "cleanSpot": "Nettoyage local", + "battery": "Batterie" } }[this.platform.language] @@ -692,4 +705,4 @@ KoboldVacuumRobotAccessory.prototype = { }); } } -}; \ No newline at end of file +}; diff --git a/config.schema.json b/config.schema.json index 02b9563..84241be 100644 --- a/config.schema.json +++ b/config.schema.json @@ -27,10 +27,16 @@ "enum": [ "de" ] + }, + { + "title": "French", + "enum": [ + "fr" + ] } ], "required": true } } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index f8f6cf7..32fcea8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-kobold", - "version": "0.8.1", + "version": "0.8.2", "description": "A Vorwerk Kobold vacuum robot plugin for homebridge.", "license": "MIT", "keywords": [ @@ -16,6 +16,12 @@ "name": "Luis R.", "url2": "https://github.com/himbeles" }, + "contributors": [ + { + "name": "Alexandre L.", + "url": "https://github.com/aluini" + } + ], "repository": { "type": "git", "url": "git://github.com/himbeles/homebridge-kobold.git"