Merge pull request #1 from aluini/feature/lang-fr

Add french plugin language
This commit is contained in:
Luis R 2021-04-30 15:11:38 +02:00 committed by GitHub
commit 81d3385c48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 35 additions and 7 deletions

View File

@ -126,4 +126,7 @@
* Include Robot name in Homekit battery service name * Include Robot name in Homekit battery service name
## 0.8.2 ## 0.8.2
* Eliminate warnings on Homebridge >= 1.3.0 (77945f8 and 877c3d7 on `naofireblade/homebridge-neato`) * Eliminate warnings on Homebridge >= 1.3.0 (77945f8 and 877c3d7 on `naofireblade/homebridge-neato`)
## 0.8.3
* Add French plugin language (for example, this gives you a "Aspirer la cuisine" Siri command for a zone called "La cuisine")

View File

@ -27,7 +27,7 @@ The interaction with the Server is handled by the underlying [node-kobold-contro
- Automatic or periodic refresh of robot state - Automatic or periodic refresh of robot state
- Multiple robots - Multiple robots
- German or English Language Setting - German, English or French Language Setting
> <b name="change-room">2</b> 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. > <b name="change-room">2</b> 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. Add the following information to your config file. Change the values for email and password.
### Simple ### Simple
```json ```json
"platforms": [ "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. 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 ### Advanced
@ -124,4 +124,4 @@ List of plugin features that you don't want to use in homekit (e.g. `dock`, `doc
## Tested robots ## Tested robots
- Vorwerk Kobold VR300 - Vorwerk Kobold VR300

View File

@ -64,6 +64,19 @@ function KoboldVacuumRobotAccessory(platform, robotObject)
"findMe": "Finde mich", "findMe": "Finde mich",
"cleanSpot": "Spot Reinigung", "cleanSpot": "Spot Reinigung",
"battery": "Batterie" "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] }[this.platform.language]
@ -709,4 +722,4 @@ KoboldVacuumRobotAccessory.prototype = {
}); });
} }
} }
}; };

View File

@ -27,10 +27,16 @@
"enum": [ "enum": [
"de" "de"
] ]
},
{
"title": "French",
"enum": [
"fr"
]
} }
], ],
"required": true "required": true
} }
} }
} }
} }

View File

@ -16,6 +16,12 @@
"name": "Luis R.", "name": "Luis R.",
"url2": "https://github.com/himbeles" "url2": "https://github.com/himbeles"
}, },
"contributors": [
{
"name": "Alexandre L.",
"url": "https://github.com/aluini"
}
],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/himbeles/homebridge-kobold.git" "url": "git://github.com/himbeles/homebridge-kobold.git"