From d2cebfad678a0e1c753812fb9d7cf40bb04b3c13 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sat, 22 Apr 2023 21:33:49 +0200 Subject: [PATCH] Update readme for translations --- README.md | 23 +++++++++++++++++++ scripts/generate_translation.py | 39 +++++++++++++++++---------------- 2 files changed, 43 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 92d4e2c..c2e63d5 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,29 @@ For every device exists a hidden button which can be used to log all info of you - Haier XIB 3B2SFS-80 - Haier XIB 6B2D3FB +## Supported Languages +Translation of internal names like programs are available for all languages which are official supported by the hOn app: +* Chinese +* Croatian +* Czech +* Dutch +* English +* French +* German +* Greek +* Hebrew +* Italian +* Polish +* Portuguese +* Romanian +* Russian +* Serbian +* Slovak +* Slovenian +* Spanish +* Turkish + + ## About this Repo The existing integrations missed some features from the app I liked to have in HomeAssistant. I tried to create a pull request, but in the structures of these existing repos, I find it hard to fit in my needs, so I basically rewrote everything. diff --git a/scripts/generate_translation.py b/scripts/generate_translation.py index 9b12093..cf81d1b 100644 --- a/scripts/generate_translation.py +++ b/scripts/generate_translation.py @@ -4,26 +4,27 @@ from pathlib import Path from pyhon import HonAPI +# These languages are official supported by hOn LANGUAGES = [ - "cs", - "de", - "el", - "en", - "es", - "fr", - "he", - "hr", - "it", - "nl", - "pl", - "pt", - "ro", - "ru", - "sk", - "sl", - "sr", - "tr", - "zh", + "cs", # Czech + "de", # German + "el", # Greek + "en", # English + "es", # Spanish + "fr", # French + "he", # Hebrew + "hr", # Croatian + "it", # Italian + "nl", # Dutch + "pl", # Polish + "pt", # Portuguese + "ro", # Romanian + "ru", # Russian + "sk", # Slovak + "sl", # Slovenian + "sr", # Serbian + "tr", # Turkish + "zh", # Chinese ] WASHING_PR_PHASE = {