mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Localize config flow title (#11358)
This commit is contained in:
parent
27cae037ce
commit
50bea33a19
@ -114,5 +114,8 @@ export const localizeConfigFlowTitle = (
|
|||||||
args.push(key);
|
args.push(key);
|
||||||
args.push(placeholders[key]);
|
args.push(placeholders[key]);
|
||||||
});
|
});
|
||||||
return localize(`component.${flow.handler}.config.flow_title`, ...args);
|
return localize(`component.${flow.handler}.config.flow_title`, ...args) ||
|
||||||
|
"name" in placeholders
|
||||||
|
? placeholders.name
|
||||||
|
: domainToName(localize, flow.handler);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user