Update device automation translation steps (#735)

This commit is contained in:
Allen Porter 2020-11-23 01:39:07 -08:00 committed by GitHub
parent 517c48bed0
commit 1ac4d6307c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`.