Add localization for third-party data reporting in the Z-Wave JS dashboard (#26395)

* Add localization for third-party data reporting in the Z-Wave JS dashboard

* Run prettier
This commit is contained in:
Jan-Philipp Benecke 2025-08-05 13:00:14 +02:00 committed by GitHub
parent 8d89b0e57f
commit 53497aa632
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 12 deletions

View File

@ -434,7 +434,11 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
</ha-card>
<ha-card>
<div class="card-header">
<h1>Third-party data reporting</h1>
<h1>
${this.hass.localize(
"ui.panel.config.zwave_js.dashboard.data_collection.title"
)}
</h1>
${this._dataCollectionOptIn !== undefined
? html`
<ha-switch
@ -446,17 +450,18 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
</div>
<div class="card-content">
<p>
Enable the reporting of anonymized telemetry and
statistics to the <em>Z-Wave JS organization</em>. This
data will be used to focus development efforts and improve
the user experience. Information about the data that is
collected and how it is used, including an example of the
data collected, can be found in the
<a
target="_blank"
href="https://zwave-js.github.io/node-zwave-js/#/data-collection/data-collection"
>Z-Wave JS data collection documentation</a
>.
${this.hass.localize(
"ui.panel.config.zwave_js.dashboard.data_collection.description",
{
documentation_link: html`<a
target="_blank"
href="https://zwave-js.github.io/node-zwave-js/#/data-collection/data-collection"
>${this.hass.localize(
"ui.panel.config.zwave_js.dashboard.data_collection.documentation_link"
)}</a
>`,
}
)}
</p>
</div>
</ha-card>

View File

@ -5921,6 +5921,11 @@
"restoring": "Restoring backup",
"migrate": "Migrate adapter"
},
"data_collection": {
"title": "Third-party data reporting",
"description": "Enable the reporting of anonymized telemetry and statistics to the Z-Wave JS organization. This data will be used to focus development efforts and improve the user experience. Information about the data that is collected and how it is used, including an example of the data collected, can be found in the {documentation_link}.",
"documentation_link": "Z-Wave JS data collection documentation"
},
"statistics": {
"title": "Adapter statistics",
"messages_tx": {