Translation for number of occurrences (#25117)

* Translation for number of occurrences

* Update src/translations/en.json
This commit is contained in:
Simon Lamon 2025-04-21 10:47:43 +02:00 committed by GitHub
parent 09a17131ab
commit 6bf8faa96a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -159,9 +159,11 @@ class DialogSystemLogDetail extends LitElement {
this.hass!.locale, this.hass!.locale,
this.hass!.config this.hass!.config
)} )}
(${item.count} (${this.hass.localize(
${this.hass.localize( "ui.panel.config.logs.detail.number_of_occurrences",
"ui.panel.config.logs.detail.occurrences" {
count: item.count,
}
)}) <br /> )}) <br />
` `
: ""} : ""}

View File

@ -3162,7 +3162,7 @@
"documentation": "documentation", "documentation": "documentation",
"issues": "issues", "issues": "issues",
"first_occurred": "First occurred", "first_occurred": "First occurred",
"occurrences": "occurrences", "number_of_occurrences": "{count} {count, plural,\n one {occurrence}\n other {occurrences}\n}",
"last_logged": "Last logged" "last_logged": "Last logged"
} }
}, },
@ -9320,7 +9320,6 @@
"documentation": "[%key:ui::panel::config::logs::detail::documentation%]", "documentation": "[%key:ui::panel::config::logs::detail::documentation%]",
"issues": "[%key:ui::panel::config::logs::detail::issues%]", "issues": "[%key:ui::panel::config::logs::detail::issues%]",
"first_occurred": "[%key:ui::panel::config::logs::detail::first_occurred%]", "first_occurred": "[%key:ui::panel::config::logs::detail::first_occurred%]",
"occurrences": "[%key:ui::panel::config::logs::detail::occurrences%]",
"last_logged": "[%key:ui::panel::config::logs::detail::last_logged%]" "last_logged": "[%key:ui::panel::config::logs::detail::last_logged%]"
} }
} }