From 53497aa632c9dcc10d4d64dc15ed3aea897bec8e Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Tue, 5 Aug 2025 13:00:14 +0200 Subject: [PATCH] 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 --- .../zwave_js/zwave_js-config-dashboard.ts | 29 +++++++++++-------- src/translations/en.json | 5 ++++ 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-config-dashboard.ts b/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-config-dashboard.ts index 3f83a69f59..c2026e9f95 100644 --- a/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-config-dashboard.ts +++ b/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-config-dashboard.ts @@ -434,7 +434,11 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
-

Third-party data reporting

+

+ ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.data_collection.title" + )} +

${this._dataCollectionOptIn !== undefined ? html`

- 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 - Z-Wave JS data collection documentation. + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.data_collection.description", + { + documentation_link: html`${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.data_collection.documentation_link" + )}`, + } + )}

diff --git a/src/translations/en.json b/src/translations/en.json index af9592bd2f..ebb4c29f3e 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -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": {