mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 07:46:37 +00:00
Localize system log detail (#19813)
This commit is contained in:
parent
26600e3d78
commit
2524c96db6
@ -102,12 +102,17 @@ class DialogSystemLogDetail extends LitElement {
|
|||||||
: ""}
|
: ""}
|
||||||
<div class="contents" tabindex="-1" dialogInitialFocus>
|
<div class="contents" tabindex="-1" dialogInitialFocus>
|
||||||
<p>
|
<p>
|
||||||
Logger: ${item.name}<br />
|
${this.hass.localize("ui.panel.config.logs.detail.logger")}:
|
||||||
Source: ${item.source.join(":")}
|
${item.name}<br />
|
||||||
|
${this.hass.localize("ui.panel.config.logs.detail.source")}:
|
||||||
|
${item.source.join(":")}
|
||||||
${integration
|
${integration
|
||||||
? html`
|
? html`
|
||||||
<br />
|
<br />
|
||||||
Integration: ${domainToName(this.hass.localize, integration)}
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.logs.detail.integration"
|
||||||
|
)}:
|
||||||
|
${domainToName(this.hass.localize, integration)}
|
||||||
${!this._manifest ||
|
${!this._manifest ||
|
||||||
// Can happen with custom integrations
|
// Can happen with custom integrations
|
||||||
!showDocumentation
|
!showDocumentation
|
||||||
@ -122,7 +127,9 @@ class DialogSystemLogDetail extends LitElement {
|
|||||||
: this._manifest.documentation}
|
: this._manifest.documentation}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
>documentation</a
|
>${this.hass.localize(
|
||||||
|
"ui.panel.config.logs.detail.documentation"
|
||||||
|
)}</a
|
||||||
>${this._manifest.is_built_in ||
|
>${this._manifest.is_built_in ||
|
||||||
this._manifest.issue_tracker
|
this._manifest.issue_tracker
|
||||||
? html`,
|
? html`,
|
||||||
@ -133,7 +140,9 @@ class DialogSystemLogDetail extends LitElement {
|
|||||||
)}
|
)}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
>issues</a
|
>${this.hass.localize(
|
||||||
|
"ui.panel.config.logs.detail.issues"
|
||||||
|
)}</a
|
||||||
>`
|
>`
|
||||||
: ""})
|
: ""})
|
||||||
`}
|
`}
|
||||||
@ -142,16 +151,21 @@ class DialogSystemLogDetail extends LitElement {
|
|||||||
<br />
|
<br />
|
||||||
${item.count > 0
|
${item.count > 0
|
||||||
? html`
|
? html`
|
||||||
First occurred:
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.logs.detail.first_occurred"
|
||||||
|
)}:
|
||||||
${formatSystemLogTime(
|
${formatSystemLogTime(
|
||||||
item.first_occurred,
|
item.first_occurred,
|
||||||
this.hass!.locale,
|
this.hass!.locale,
|
||||||
this.hass!.config
|
this.hass!.config
|
||||||
)}
|
)}
|
||||||
(${item.count} occurrences) <br />
|
(${item.count}
|
||||||
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.logs.detail.occurrences"
|
||||||
|
)}) <br />
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
Last logged:
|
${this.hass.localize("ui.panel.config.logs.detail.last_logged")}:
|
||||||
${formatSystemLogTime(
|
${formatSystemLogTime(
|
||||||
item.timestamp,
|
item.timestamp,
|
||||||
this.hass!.locale,
|
this.hass!.locale,
|
||||||
|
@ -2169,7 +2169,17 @@
|
|||||||
"show_full_logs": "Show full logs",
|
"show_full_logs": "Show full logs",
|
||||||
"download_full_log": "Download full log",
|
"download_full_log": "Download full log",
|
||||||
"provider_not_found": "Log provider not found",
|
"provider_not_found": "Log provider not found",
|
||||||
"provider_not_available": "Logs for ''{provider}'' are not available on your system."
|
"provider_not_available": "Logs for ''{provider}'' are not available on your system.",
|
||||||
|
"detail": {
|
||||||
|
"logger": "Logger",
|
||||||
|
"source": "Source",
|
||||||
|
"integration": "[%key:ui::panel::config::integrations::integration%]",
|
||||||
|
"documentation": "documentation",
|
||||||
|
"issues": "issues",
|
||||||
|
"first_occurred": "First occurred",
|
||||||
|
"occurrences": "occurrences",
|
||||||
|
"last_logged": "Last logged"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"lovelace": {
|
"lovelace": {
|
||||||
"caption": "Dashboards",
|
"caption": "Dashboards",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user