Add backend translation support for selector select (#15064)

* Base for selector translations

* Allow translations for ha-selector-select

* Fetch translation for config flow and onboarding

* Get translation_key from step handler

* Add domain property to DataEntry flow

* Revert fetching translation for onboarding flow

* Leave domain for repair flows

* Use localizeValue function

* Change type

* Import selector translations in issue flow

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
This commit is contained in:
Jan Bouwhuis
2023-01-23 20:32:30 +01:00
committed by GitHub
parent 095ebbc903
commit e6dbb1da7e
10 changed files with 56 additions and 2 deletions

View File

@@ -61,6 +61,12 @@ export interface FlowConfig {
error: string
): string;
renderShowFormStepFieldLocalizeValue(
hass: HomeAssistant,
step: DataEntryFlowStepForm,
key: string
): string;
renderExternalStepHeader(
hass: HomeAssistant,
step: DataEntryFlowStepExternal