mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Add missing translations on the area registry page (#5998)
This commit is contained in:
parent
2fd64af737
commit
6b8cfe661c
@ -56,13 +56,24 @@ class DialogAreaDetail extends LitElement {
|
|||||||
<paper-dialog-scrollable>
|
<paper-dialog-scrollable>
|
||||||
${this._error ? html` <div class="error">${this._error}</div> ` : ""}
|
${this._error ? html` <div class="error">${this._error}</div> ` : ""}
|
||||||
<div class="form">
|
<div class="form">
|
||||||
${entry ? html` <div>Area ID: ${entry.area_id}</div> ` : ""}
|
${entry
|
||||||
|
? html`
|
||||||
|
<div>
|
||||||
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.areas.editor.area_id"
|
||||||
|
)}:
|
||||||
|
${entry.area_id}
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
: ""}
|
||||||
|
|
||||||
<paper-input
|
<paper-input
|
||||||
.value=${this._name}
|
.value=${this._name}
|
||||||
@value-changed=${this._nameChanged}
|
@value-changed=${this._nameChanged}
|
||||||
label="Name"
|
.label=${this.hass.localize("ui.panel.config.areas.editor.name")}
|
||||||
error-message="Name is required"
|
.errorMessage=${this.hass.localize(
|
||||||
|
"ui.panel.config.areas.editor.name_required"
|
||||||
|
)}
|
||||||
.invalid=${nameInvalid}
|
.invalid=${nameInvalid}
|
||||||
></paper-input>
|
></paper-input>
|
||||||
</div>
|
</div>
|
||||||
@ -110,7 +121,9 @@ class DialogAreaDetail extends LitElement {
|
|||||||
}
|
}
|
||||||
this._params = undefined;
|
this._params = undefined;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this._error = err.message || "Unknown error";
|
this._error =
|
||||||
|
err.message ||
|
||||||
|
this.hass.localize("ui.panel.config.areas.editor.unknown_error");
|
||||||
} finally {
|
} finally {
|
||||||
this._submitting = false;
|
this._submitting = false;
|
||||||
}
|
}
|
||||||
|
@ -541,7 +541,11 @@
|
|||||||
"default_name": "New Area",
|
"default_name": "New Area",
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"update": "Update",
|
"update": "Update",
|
||||||
"create": "Create"
|
"create": "Create",
|
||||||
|
"name": "Name",
|
||||||
|
"name_required": "Name is required",
|
||||||
|
"area_id": "Area ID",
|
||||||
|
"unknown_error": "Unknown error"
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"confirmation_title": "Are you sure you want to delete this area?",
|
"confirmation_title": "Are you sure you want to delete this area?",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user