mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 02:49:51 +00:00
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:
@@ -51,6 +51,8 @@ export class HaSelector extends LitElement {
|
||||
|
||||
@property() public helper?: string;
|
||||
|
||||
@property() public localizeValue?: (key: string) => string;
|
||||
|
||||
@property() public placeholder?: any;
|
||||
|
||||
@property({ type: Boolean }) public disabled = false;
|
||||
@@ -86,6 +88,7 @@ export class HaSelector extends LitElement {
|
||||
required: this.required,
|
||||
helper: this.helper,
|
||||
context: this.context,
|
||||
localizeValue: this.localizeValue,
|
||||
id: "selector",
|
||||
})}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user