mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Make log levels translatable (#8761)
This commit is contained in:
parent
3888c56f1a
commit
afe3831f25
@ -72,7 +72,15 @@ class DialogSystemLogDetail extends LitElement {
|
||||
<ha-svg-icon .path=${mdiClose}></ha-svg-icon>
|
||||
</mwc-icon-button>
|
||||
<span slot="title">
|
||||
${this.hass.localize("ui.panel.config.logs.details", "level", html`<span class="${item.level.toLowerCase()}">${item.level}</span>`)}
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.logs.details",
|
||||
"level",
|
||||
html`<span class="${item.level.toLowerCase()}"
|
||||
>${this.hass.localize(
|
||||
"ui.panel.config.logs.level." + item.level.toLowerCase()
|
||||
)}</span
|
||||
>`
|
||||
)}
|
||||
</span>
|
||||
<mwc-icon-button id="copy" @click=${this._copyLog} slot="actionItems">
|
||||
<ha-svg-icon .path=${mdiContentCopy}></ha-svg-icon>
|
||||
|
@ -72,7 +72,10 @@ export class SystemLogCard extends LitElement {
|
||||
)}
|
||||
–
|
||||
${html`(<span class="${item.level.toLowerCase()}"
|
||||
>${item.level}</span
|
||||
>${this.hass.localize(
|
||||
"ui.panel.config.logs.level." +
|
||||
item.level.toLowerCase()
|
||||
)}</span
|
||||
>) `}
|
||||
${integrations[idx]
|
||||
? domainToName(
|
||||
|
@ -1047,11 +1047,18 @@
|
||||
"details": "Log Details ({level})",
|
||||
"load_full_log": "Load Full Home Assistant Log",
|
||||
"loading_log": "Loading error log…",
|
||||
"no_errors": "No errors have been reported.",
|
||||
"no_errors": "No errors have been reported",
|
||||
"no_issues": "There are no new issues!",
|
||||
"clear": "Clear",
|
||||
"refresh": "Refresh",
|
||||
"multiple_messages": "message first occurred at {time} and shows up {counter} times"
|
||||
"multiple_messages": "message first occurred at {time} and shows up {counter} times",
|
||||
"level": {
|
||||
"critical": "CRITICAL",
|
||||
"error": "ERROR",
|
||||
"warning": "WARNING",
|
||||
"info": "INFO",
|
||||
"debug": "DEBUG"
|
||||
}
|
||||
},
|
||||
"lovelace": {
|
||||
"caption": "Lovelace Dashboards",
|
||||
|
Loading…
x
Reference in New Issue
Block a user