Translate login

This commit is contained in:
Andre Basche 2023-04-24 22:40:20 +02:00
parent e56f2c99c0
commit 28a8ad1672
20 changed files with 201 additions and 4 deletions

View file

@ -981,5 +981,16 @@
"name": "Indukční varná deska"
}
}
},
"config": {
"step": {
"user": {
"description": "Přihlaste se",
"data": {
"email": "E-mail",
"password": "Heslo"
}
}
}
}
}

View file

@ -981,5 +981,16 @@
"name": "Induktionskochfeld"
}
}
},
"config": {
"step": {
"user": {
"description": "Melden Sie sich an.",
"data": {
"email": "E-Mail",
"password": "Kennwort"
}
}
}
}
}

View file

@ -981,5 +981,16 @@
"name": "Επαγωγική εστία"
}
}
},
"config": {
"step": {
"user": {
"description": "Do the login",
"data": {
"email": "Email",
"password": "Password"
}
}
}
}
}

View file

@ -2,9 +2,9 @@
"config": {
"step": {
"user": {
"description": "Please enters your hOn credentials",
"description": "Do the login",
"data": {
"email": "Email Address",
"email": "Email",
"password": "Password"
}
}

View file

@ -981,5 +981,16 @@
"name": "Placa de inducción"
}
}
},
"config": {
"step": {
"user": {
"description": "Inicia sesión",
"data": {
"email": "Correo electrónico",
"password": "Contraseña"
}
}
}
}
}

View file

@ -981,5 +981,16 @@
"name": "Table de cuisson à induction"
}
}
},
"config": {
"step": {
"user": {
"description": "Connectez-vous.",
"data": {
"email": "E-mail",
"password": "Mot de passe"
}
}
}
}
}

View file

@ -580,5 +580,16 @@
"name": "Induction Hob"
}
}
},
"config": {
"step": {
"user": {
"description": "Do the login",
"data": {
"email": "Email",
"password": "Password"
}
}
}
}
}

View file

@ -981,5 +981,16 @@
"name": "Indukcijska ploča za kuhanje"
}
}
},
"config": {
"step": {
"user": {
"description": "Do the login",
"data": {
"email": "E-pošta",
"password": "Password"
}
}
}
}
}

View file

@ -2,9 +2,9 @@
"config": {
"step": {
"user": {
"description": "Inserisci le credenziali dell'app hOn",
"description": "Fai il login",
"data": {
"email": "Indirizzo Email",
"email": "Email",
"password": "Password"
}
}

View file

@ -981,5 +981,16 @@
"name": "Inductiekookplaat"
}
}
},
"config": {
"step": {
"user": {
"description": "Log in",
"data": {
"email": "E-mail",
"password": "Wachtwoord"
}
}
}
}
}

View file

@ -981,5 +981,16 @@
"name": "Płyta indukcyjna"
}
}
},
"config": {
"step": {
"user": {
"description": "Zaloguj się",
"data": {
"email": "E-mail",
"password": "Hasło"
}
}
}
}
}

View file

@ -981,5 +981,16 @@
"name": "Placa de indução"
}
}
},
"config": {
"step": {
"user": {
"description": "Faça login",
"data": {
"email": "E-mail",
"password": "Palavra-passe"
}
}
}
}
}

View file

@ -981,5 +981,16 @@
"name": "Plita cu inducție"
}
}
},
"config": {
"step": {
"user": {
"description": "Do the login",
"data": {
"email": "E-mail",
"password": "Password"
}
}
}
}
}

View file

@ -981,5 +981,16 @@
"name": "Индукционная варочная панель"
}
}
},
"config": {
"step": {
"user": {
"description": "Выполните вход",
"data": {
"email": "Электронная почта",
"password": "Пароль"
}
}
}
}
}

View file

@ -981,5 +981,16 @@
"name": "Indukčná varná doska"
}
}
},
"config": {
"step": {
"user": {
"description": "Do the login",
"data": {
"email": "E-mail",
"password": "Password"
}
}
}
}
}

View file

@ -981,5 +981,16 @@
"name": "Indukcijska kuhalna plošča"
}
}
},
"config": {
"step": {
"user": {
"description": "Do the login",
"data": {
"email": "E-pošta",
"password": "Password"
}
}
}
}
}

View file

@ -981,5 +981,16 @@
"name": "Indukciona ploča"
}
}
},
"config": {
"step": {
"user": {
"description": "Do the login",
"data": {
"email": "E-adresa",
"password": "Password"
}
}
}
}
}

View file

@ -981,5 +981,16 @@
"name": "İndüksiyonlu Ocak"
}
}
},
"config": {
"step": {
"user": {
"description": "Do the login",
"data": {
"email": "E-posta",
"password": "Password"
}
}
}
}
}

View file

@ -981,5 +981,16 @@
"name": "电磁炉"
}
}
},
"config": {
"step": {
"user": {
"description": "Do the login",
"data": {
"email": "电子邮件",
"password": "Password"
}
}
}
}
}

View file

@ -298,6 +298,15 @@ def add_data(old, original, fallback, data, name, entity="sensor"):
state[str(number)] = key
def translate_login(old, *args):
login = old.setdefault("config", {}).setdefault("step", {}).setdefault("user", {})
login["description"] = load_key("CUBE90_ALEXA.HAIER_SMART_SKILLS.STEP_2", *args)
login.setdefault("data", {})["email"] = load_key(
"PET.EDIT_PET_PROFESSIONALS.EMAIL", *args
)
login["data"]["password"] = load_key("CUBE90_GLOBAL.GENERAL.PASSWORD", *args)
def main():
hass = load_hass_translations()
hon = load_hon_translations()
@ -317,6 +326,7 @@ def main():
for name, key in data.items():
select = old.setdefault("entity", {}).setdefault(entity, {})
select.setdefault(name, {})["name"] = load_key(key, original, fallback)
translate_login(old, original, fallback)
save_json(base_path / f"{language}.json", old)