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" "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" "name": "Induktionskochfeld"
} }
} }
},
"config": {
"step": {
"user": {
"description": "Melden Sie sich an.",
"data": {
"email": "E-Mail",
"password": "Kennwort"
}
}
}
} }
} }

View File

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

View File

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

View File

@ -981,5 +981,16 @@
"name": "Placa de inducción" "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" "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" "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" "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": { "config": {
"step": { "step": {
"user": { "user": {
"description": "Inserisci le credenziali dell'app hOn", "description": "Fai il login",
"data": { "data": {
"email": "Indirizzo Email", "email": "Email",
"password": "Password" "password": "Password"
} }
} }

View File

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

View File

@ -981,5 +981,16 @@
"name": "Płyta indukcyjna" "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" "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" "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": "Индукционная варочная панель" "name": "Индукционная варочная панель"
} }
} }
},
"config": {
"step": {
"user": {
"description": "Выполните вход",
"data": {
"email": "Электронная почта",
"password": "Пароль"
}
}
}
} }
} }

View File

@ -981,5 +981,16 @@
"name": "Indukčná varná doska" "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" "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" "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" "name": "İndüksiyonlu Ocak"
} }
} }
},
"config": {
"step": {
"user": {
"description": "Do the login",
"data": {
"email": "E-posta",
"password": "Password"
}
}
}
} }
} }

View File

@ -981,5 +981,16 @@
"name": "电磁炉" "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 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(): def main():
hass = load_hass_translations() hass = load_hass_translations()
hon = load_hon_translations() hon = load_hon_translations()
@ -317,6 +326,7 @@ def main():
for name, key in data.items(): for name, key in data.items():
select = old.setdefault("entity", {}).setdefault(entity, {}) select = old.setdefault("entity", {}).setdefault(entity, {})
select.setdefault(name, {})["name"] = load_key(key, original, fallback) select.setdefault(name, {})["name"] = load_key(key, original, fallback)
translate_login(old, original, fallback)
save_json(base_path / f"{language}.json", old) save_json(base_path / f"{language}.json", old)