mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-19 07:16:29 +00:00
Update core.md
This commit is contained in:
parent
98d1ec19f5
commit
bbf4422ac9
@ -151,6 +151,21 @@ The translation for selectors are defined under the `selector` key. It supports
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The `unit_of_measurement` of a number selector may also be translated with a translation key:
|
||||||
|
```
|
||||||
|
// Translations for number selector to be used in option and config flows
|
||||||
|
"selector": {
|
||||||
|
// The key is linked to the `translation_key` that needs to be set
|
||||||
|
// using the NumberSelectorConfig class
|
||||||
|
"round_digits": {
|
||||||
|
// The translations for the number selector unit_of_measurement
|
||||||
|
"unit_of_measurement": {
|
||||||
|
"decimals": "decimals"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Service Actions
|
### Service Actions
|
||||||
|
|
||||||
The translations of service actions strings are defined under the `services` key.
|
The translations of service actions strings are defined under the `services` key.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user