From 1ac4d6307c32db56b73d258cee17e4ca9f558ffb Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Mon, 23 Nov 2020 01:39:07 -0800 Subject: [PATCH] Update device automation translation steps (#735) --- docs/device_automation_trigger.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/device_automation_trigger.md b/docs/device_automation_trigger.md index 5bf7c96d..26f3e4ff 100644 --- a/docs/device_automation_trigger.md +++ b/docs/device_automation_trigger.md @@ -103,8 +103,7 @@ The return value is a function that detaches the trigger. #### Add text and translations -The Automation user interface will display a human-readable string in the device automation mapped to the event -type. Update `strings.json` and if you used `script.scaffold` then `translations/en.json` with the full set of supported event types: +The Automation user interface will display a human-readable string in the device automation mapped to the event type. Update `strings.json` with the trigger types and subtypes that you support: ```json { @@ -115,3 +114,6 @@ type. Update `strings.json` and if you used `script.scaffold` then `translation } } ``` + +To test your translations during development, run `python3 -m script.translations develop`. +