mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 06:46:35 +00:00
Add translations for backup agents encryption (#23938)
* Add translations for backup agents encryption * Update src/translations/en.json * Split class map --------- Co-authored-by: Bram Kragten <mail@bramkragten.nl> Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
This commit is contained in:
parent
a0e7d6f1c6
commit
c97d0ce68a
@ -266,38 +266,42 @@ class HaConfigBackupDetails extends LitElement {
|
|||||||
})}
|
})}
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
referrerpolicy="no-referrer"
|
referrerpolicy="no-referrer"
|
||||||
alt=""
|
alt=${`${domain} logo`}
|
||||||
slot="start"
|
slot="start"
|
||||||
/>
|
/>
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
<div slot="headline">${name}</div>
|
<div slot="headline">${name}</div>
|
||||||
${
|
<div slot="supporting-text">
|
||||||
failed
|
${
|
||||||
? html`
|
failed
|
||||||
<div slot="supporting-text">
|
? html`
|
||||||
<span class="dot error"></span>
|
<span class="dot error"></span>
|
||||||
<span>
|
<span>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.config.backup.details.locations.backup_failed"
|
"ui.panel.config.backup.details.locations.backup_failed"
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
`
|
||||||
`
|
: unencrypted
|
||||||
: unencrypted
|
? html`
|
||||||
? html`
|
<span class="dot warning"></span>
|
||||||
<div slot="supporting-text">
|
<span>
|
||||||
<span class="dot warning"></span>
|
${this.hass.localize(
|
||||||
<span> Unencrypted </span>
|
"ui.panel.config.backup.details.locations.unencrypted"
|
||||||
</div>
|
)}</span
|
||||||
`
|
>
|
||||||
: html`
|
`
|
||||||
<div slot="supporting-text">
|
: html`
|
||||||
<span class="dot success"></span>
|
<span class="dot success"></span>
|
||||||
<span> Encrypted </span>
|
<span
|
||||||
</div>
|
>${this.hass.localize(
|
||||||
`
|
"ui.panel.config.backup.details.locations.encrypted"
|
||||||
}
|
)}</span
|
||||||
|
>
|
||||||
|
`
|
||||||
|
}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
${
|
${
|
||||||
success
|
success
|
||||||
|
@ -232,7 +232,6 @@ class HaConfigBackupDetails extends LitElement {
|
|||||||
|
|
||||||
private async _fetchAgent() {
|
private async _fetchAgent() {
|
||||||
try {
|
try {
|
||||||
// Todo fetch agent details
|
|
||||||
const { agents } = await fetchBackupAgentsInfo(this.hass);
|
const { agents } = await fetchBackupAgentsInfo(this.hass);
|
||||||
const agent = agents.find((a) => a.agent_id === this.agentId);
|
const agent = agents.find((a) => a.agent_id === this.agentId);
|
||||||
if (!agent) {
|
if (!agent) {
|
||||||
|
@ -2661,7 +2661,9 @@
|
|||||||
"title": "Locations",
|
"title": "Locations",
|
||||||
"backup_failed": "Backup failed",
|
"backup_failed": "Backup failed",
|
||||||
"encryption_turned_off": "Encryption turned off",
|
"encryption_turned_off": "Encryption turned off",
|
||||||
"download": "Download from this location"
|
"download": "Download from this location",
|
||||||
|
"unencrypted": "Unencrypted",
|
||||||
|
"encrypted": "Encrypted"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"location": {
|
"location": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user