Replace key names with translatable friendly names in zwave_js (#136318)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Norbert Rittel 2025-01-23 15:15:08 +01:00 committed by GitHub
parent f6a040d598
commit 5dfafd9f2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,28 +1,28 @@
{ {
"config": { "config": {
"abort": { "abort": {
"addon_get_discovery_info_failed": "Failed to get Z-Wave JS add-on discovery info.", "addon_get_discovery_info_failed": "Failed to get Z-Wave add-on discovery info.",
"addon_info_failed": "Failed to get Z-Wave JS add-on info.", "addon_info_failed": "Failed to get Z-Wave add-on info.",
"addon_install_failed": "Failed to install the Z-Wave JS add-on.", "addon_install_failed": "Failed to install the Z-Wave add-on.",
"addon_set_config_failed": "Failed to set Z-Wave JS configuration.", "addon_set_config_failed": "Failed to set Z-Wave configuration.",
"addon_start_failed": "Failed to start the Z-Wave JS add-on.", "addon_start_failed": "Failed to start the Z-Wave add-on.",
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]", "already_configured": "[%key:common::config_flow::abort::already_configured_device%]",
"already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]", "already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]",
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
"discovery_requires_supervisor": "Discovery requires the supervisor.", "discovery_requires_supervisor": "Discovery requires the supervisor.",
"not_zwave_device": "Discovered device is not a Z-Wave device.", "not_zwave_device": "Discovered device is not a Z-Wave device.",
"not_zwave_js_addon": "Discovered add-on is not the official Z-Wave JS add-on." "not_zwave_js_addon": "Discovered add-on is not the official Z-Wave add-on."
}, },
"error": { "error": {
"addon_start_failed": "Failed to start the Z-Wave JS add-on. Check the configuration.", "addon_start_failed": "Failed to start the Z-Wave add-on. Check the configuration.",
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
"invalid_ws_url": "Invalid websocket URL", "invalid_ws_url": "Invalid websocket URL",
"unknown": "[%key:common::config_flow::error::unknown%]" "unknown": "[%key:common::config_flow::error::unknown%]"
}, },
"flow_title": "{name}", "flow_title": "{name}",
"progress": { "progress": {
"install_addon": "Please wait while the Z-Wave JS add-on installation finishes. This can take several minutes.", "install_addon": "Please wait while the Z-Wave add-on installation finishes. This can take several minutes.",
"start_addon": "Please wait while the Z-Wave JS add-on start completes. This may take some seconds." "start_addon": "Please wait while the Z-Wave add-on start completes. This may take some seconds."
}, },
"step": { "step": {
"configure_addon": { "configure_addon": {
@ -34,13 +34,13 @@
"usb_path": "[%key:common::config_flow::data::usb_path%]" "usb_path": "[%key:common::config_flow::data::usb_path%]"
}, },
"description": "The add-on will generate security keys if those fields are left empty.", "description": "The add-on will generate security keys if those fields are left empty.",
"title": "Enter the Z-Wave JS add-on configuration" "title": "Enter the Z-Wave add-on configuration"
}, },
"hassio_confirm": { "hassio_confirm": {
"title": "Set up Z-Wave JS integration with the Z-Wave JS add-on" "title": "Set up Z-Wave integration with the Z-Wave add-on"
}, },
"install_addon": { "install_addon": {
"title": "The Z-Wave JS add-on installation has started" "title": "The Z-Wave add-on installation has started"
}, },
"manual": { "manual": {
"data": { "data": {
@ -49,20 +49,20 @@
}, },
"on_supervisor": { "on_supervisor": {
"data": { "data": {
"use_addon": "Use the Z-Wave JS Supervisor add-on" "use_addon": "Use the Z-Wave Supervisor add-on"
}, },
"description": "Do you want to use the Z-Wave JS Supervisor add-on?", "description": "Do you want to use the Z-Wave Supervisor add-on?",
"title": "Select connection method" "title": "Select connection method"
}, },
"start_addon": { "start_addon": {
"title": "The Z-Wave JS add-on is starting." "title": "The Z-Wave add-on is starting."
}, },
"usb_confirm": { "usb_confirm": {
"description": "Do you want to set up {name} with the Z-Wave JS add-on?" "description": "Do you want to set up {name} with the Z-Wave add-on?"
}, },
"zeroconf_confirm": { "zeroconf_confirm": {
"description": "Do you want to add the Z-Wave JS Server with home ID {home_id} found at {url} to Home Assistant?", "description": "Do you want to add the Z-Wave Server with home ID {home_id} found at {url} to Home Assistant?",
"title": "Discovered Z-Wave JS Server" "title": "Discovered Z-Wave Server"
} }
} }
}, },
@ -89,7 +89,7 @@
"event.value_notification.scene_activation": "Scene Activation on {subtype}", "event.value_notification.scene_activation": "Scene Activation on {subtype}",
"state.node_status": "Node status changed", "state.node_status": "Node status changed",
"zwave_js.value_updated.config_parameter": "Value change on config parameter {subtype}", "zwave_js.value_updated.config_parameter": "Value change on config parameter {subtype}",
"zwave_js.value_updated.value": "Value change on a Z-Wave JS Value" "zwave_js.value_updated.value": "Value change on a Z-Wave Value"
}, },
"extra_fields": { "extra_fields": {
"code_slot": "Code slot", "code_slot": "Code slot",
@ -191,7 +191,7 @@
}, },
"step": { "step": {
"init": { "init": {
"description": "The device configuration file for {device_name} has changed.\n\nZ-Wave JS discovers a lot of device metadata by interviewing the device. However, some of the information has to be loaded from a configuration file. Some of this information is only evaluated once, during the device interview.\n\nWhen a device config file is updated, this information may be stale and and the device must be re-interviewed to pick up the changes.\n\n This is not a required operation and device functionality will be impacted during the re-interview process, but you may see improvements for your device once it is complete.\n\nIf you decide to proceed with the re-interview, it will take place in the background.", "description": "The device configuration file for {device_name} has changed.\n\nZ-Wave discovers a lot of device metadata by interviewing the device. However, some of the information has to be loaded from a configuration file. Some of this information is only evaluated once, during the device interview.\n\nWhen a device config file is updated, this information may be stale and and the device must be re-interviewed to pick up the changes.\n\n This is not a required operation and device functionality will be impacted during the re-interview process, but you may see improvements for your device once it is complete.\n\nIf you decide to proceed with the re-interview, it will take place in the background.",
"menu_options": { "menu_options": {
"confirm": "Re-interview device", "confirm": "Re-interview device",
"ignore": "Ignore device config update" "ignore": "Ignore device config update"
@ -203,8 +203,8 @@
"title": "Device configuration file changed: {device_name}" "title": "Device configuration file changed: {device_name}"
}, },
"invalid_server_version": { "invalid_server_version": {
"description": "The version of Z-Wave JS Server you are currently running is too old for this version of Home Assistant. Please update the Z-Wave JS Server to the latest version to fix this issue.", "description": "The version of Z-Wave Server you are currently running is too old for this version of Home Assistant. Please update the Z-Wave Server to the latest version to fix this issue.",
"title": "Newer version of Z-Wave JS Server needed" "title": "Newer version of Z-Wave Server needed"
} }
}, },
"options": { "options": {
@ -306,7 +306,7 @@
"description": "Calls a Command Class API on a node. Some Command Classes can't be fully controlled via the `set_value` action and require direct calls to the Command Class API.", "description": "Calls a Command Class API on a node. Some Command Classes can't be fully controlled via the `set_value` action and require direct calls to the Command Class API.",
"fields": { "fields": {
"area_id": { "area_id": {
"description": "The area(s) to target for this action. If an area is specified, all zwave_js devices and entities in that area will be targeted for this action.", "description": "The area(s) to target for this action. If an area is specified, all Z-Wave devices and entities in that area will be targeted for this action.",
"name": "Area ID(s)" "name": "Area ID(s)"
}, },
"command_class": { "command_class": {
@ -326,18 +326,18 @@
"name": "Entity ID(s)" "name": "Entity ID(s)"
}, },
"method_name": { "method_name": {
"description": "The name of the API method to call. Refer to the Z-Wave JS Command Class API documentation (https://zwave-js.github.io/node-zwave-js/#/api/CCs/index) for available methods.", "description": "The name of the API method to call. Refer to the Z-Wave Command Class API documentation (https://zwave-js.github.io/node-zwave-js/#/api/CCs/index) for available methods.",
"name": "Method name" "name": "Method name"
}, },
"parameters": { "parameters": {
"description": "A list of parameters to pass to the API method. Refer to the Z-Wave JS Command Class API documentation (https://zwave-js.github.io/node-zwave-js/#/api/CCs/index) for parameters.", "description": "A list of parameters to pass to the API method. Refer to the Z-Wave Command Class API documentation (https://zwave-js.github.io/node-zwave-js/#/api/CCs/index) for parameters.",
"name": "Parameters" "name": "Parameters"
} }
}, },
"name": "Invoke a Command Class API on a node (advanced)" "name": "Invoke a Command Class API on a node (advanced)"
}, },
"multicast_set_value": { "multicast_set_value": {
"description": "Changes any value that Z-Wave JS recognizes on multiple Z-Wave devices using multicast, so all devices receive the message simultaneously. This action has minimal validation so only use this action if you know what you are doing.", "description": "Changes any value that Z-Wave recognizes on multiple Z-Wave devices using multicast, so all devices receive the message simultaneously. This action has minimal validation so only use this action if you know what you are doing.",
"fields": { "fields": {
"area_id": { "area_id": {
"description": "[%key:component::zwave_js::services::set_value::fields::area_id::description%]", "description": "[%key:component::zwave_js::services::set_value::fields::area_id::description%]",
@ -383,7 +383,7 @@
"name": "Set a value on multiple devices via multicast (advanced)" "name": "Set a value on multiple devices via multicast (advanced)"
}, },
"ping": { "ping": {
"description": "Forces Z-Wave JS to try to reach a node. This can be used to update the status of the node in Z-Wave JS when you think it doesn't accurately reflect reality, e.g. reviving a failed/dead node or marking the node as asleep.", "description": "Forces Z-Wave to try to reach a node. This can be used to update the status of the node in Z-Wave when you think it doesn't accurately reflect reality, e.g. reviving a failed/dead node or marking the node as asleep.",
"fields": { "fields": {
"area_id": { "area_id": {
"description": "[%key:component::zwave_js::services::set_value::fields::area_id::description%]", "description": "[%key:component::zwave_js::services::set_value::fields::area_id::description%]",
@ -474,7 +474,7 @@
"name": "[%key:component::zwave_js::services::set_value::fields::area_id::name%]" "name": "[%key:component::zwave_js::services::set_value::fields::area_id::name%]"
}, },
"bitmask": { "bitmask": {
"description": "Target a specific bitmask (see the documentation for more information). Cannot be combined with value_size or value_format.", "description": "Target a specific bitmask (see the documentation for more information). Cannot be combined with 'Value size' or 'Value format'.",
"name": "Bitmask" "name": "Bitmask"
}, },
"device_id": { "device_id": {
@ -498,11 +498,11 @@
"name": "Value" "name": "Value"
}, },
"value_format": { "value_format": {
"description": "Format of the value, 0 for signed integer, 1 for unsigned integer, 2 for enumerated, 3 for bitfield. Used in combination with value_size when a config parameter is not defined in your device's configuration file. Cannot be combined with bitmask.", "description": "Format of the value, 0 for signed integer, 1 for unsigned integer, 2 for enumerated, 3 for bitfield. Used in combination with 'Value size' when a config parameter is not defined in your device's configuration file. Cannot be combined with 'Bitmask'.",
"name": "Value format" "name": "Value format"
}, },
"value_size": { "value_size": {
"description": "Size of the value, either 1, 2, or 4. Used in combination with value_format when a config parameter is not defined in your device's configuration file. Cannot be combined with bitmask.", "description": "Size of the value, either 1, 2, or 4. Used in combination with 'Value format' when a config parameter is not defined in your device's configuration file. Cannot be combined with 'Bitmask'.",
"name": "Value size" "name": "Value size"
} }
}, },
@ -553,10 +553,10 @@
"name": "Set lock user code" "name": "Set lock user code"
}, },
"set_value": { "set_value": {
"description": "Changes any value that Z-Wave JS recognizes on a Z-Wave device. This action has minimal validation so only use this action if you know what you are doing.", "description": "Changes any value that Z-Wave recognizes on a Z-Wave device. This action has minimal validation so only use this action if you know what you are doing.",
"fields": { "fields": {
"area_id": { "area_id": {
"description": "The area(s) to target for this action. If an area is specified, all zwave_js devices and entities in that area will be targeted for this action.", "description": "The area(s) to target for this action. If an area is specified, all Z-Wave devices and entities in that area will be targeted for this action.",
"name": "Area ID(s)" "name": "Area ID(s)"
}, },
"command_class": { "command_class": {
@ -576,7 +576,7 @@
"name": "Entity ID(s)" "name": "Entity ID(s)"
}, },
"options": { "options": {
"description": "Set value options map. Refer to the Z-Wave JS documentation for more information on what options can be set.", "description": "Set value options map. Refer to the Z-Wave documentation for more information on what options can be set.",
"name": "Options" "name": "Options"
}, },
"property": { "property": {