mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Add translations for buttons and error string on the auth page (#5933)
This commit is contained in:
parent
e179404a9e
commit
34e06351fb
@ -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:
|
||||
|
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user