feat: added an alert that informs that turning off the fan is not recommended action before turning off the fan (#1567)

This commit is contained in:
Serhiy Mytrovtsiy
2023-08-15 13:45:06 +02:00
parent c3c5c26b1b
commit a7ac638ac8
36 changed files with 127 additions and 1 deletions

View File

@@ -41,6 +41,8 @@ class i18n:
for v in en_dict:
en_key = en_dict[v].get("key")
if v not in lang_dict:
sys.exit(f"missing key `{en_key}` in `{name}` on line `{v}`")
lang_ley = lang_dict[v].get("key")
if lang_ley != en_key:
sys.exit(f"missing or wrong key `{lang_ley}` in `{name}` on line `{v}`, must be `{en_key}`")