Add translations for buttons and error string on the auth page (#5933)

This commit is contained in:
Maciej Bieniek 2020-05-22 14:44:06 +02:00 committed by GitHub
parent e179404a9e
commit 34e06351fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

View File

@ -83,12 +83,24 @@ class HaAuthFlow extends litLocalizeLiteMixin(LitElement) {
${this._renderStep(this._step)}
<div class="action">
<mwc-button raised @click=${this._handleSubmit}
>${this._step.type === "form" ? "Next" : "Start over"}</mwc-button
>${this._step.type === "form"
? this.localize("ui.panel.page-authorize.form.next")
: this.localize(
"ui.panel.page-authorize.form.start_over"
)}</mwc-button
>
</div>
`;
case "error":
return html` <div class="error">Error: ${this._errorMessage}</div> `;
return html`
<div class="error">
${this.localize(
"ui.panel.page-authorize.form.error",
"error",
this._errorMessage
)}
</div>
`;
case "loading":
return html` ${this.localize("ui.panel.page-authorize.form.working")} `;
default:

View File

@ -2045,6 +2045,9 @@
"form": {
"working": "Please wait",
"unknown_error": "Something went wrong",
"next": "Next",
"start_over": "Start over",
"error": "Error: {error}",
"providers": {
"command_line": {
"step": {