From bbf4422ac907f496f3b9e279c8c9d7cd7fe4f4d4 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Fri, 4 Jul 2025 11:30:27 -0700 Subject: [PATCH] Update core.md --- docs/internationalization/core.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/internationalization/core.md b/docs/internationalization/core.md index 54b5d8d7..29150b1a 100644 --- a/docs/internationalization/core.md +++ b/docs/internationalization/core.md @@ -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 The translations of service actions strings are defined under the `services` key.