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

View File

@ -5921,6 +5921,11 @@
"restoring": "Restoring backup", "restoring": "Restoring backup",
"migrate": "Migrate adapter" "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": { "statistics": {
"title": "Adapter statistics", "title": "Adapter statistics",
"messages_tx": { "messages_tx": {