mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-08 18:39:40 +00:00
Ask specific translations (#5560)
This commit is contained in:
@@ -25,8 +25,20 @@ export const showOptionsFlowDialog = (
|
||||
},
|
||||
{
|
||||
loadDevicesAndAreas: false,
|
||||
createFlow: createOptionsFlow,
|
||||
fetchFlow: fetchOptionsFlow,
|
||||
createFlow: async (hass, handler) => {
|
||||
const [step] = await Promise.all([
|
||||
createOptionsFlow(hass, handler),
|
||||
hass.loadBackendTranslation("options", configEntry.domain),
|
||||
]);
|
||||
return step;
|
||||
},
|
||||
fetchFlow: async (hass, flowId) => {
|
||||
const [step] = await Promise.all([
|
||||
fetchOptionsFlow(hass, flowId),
|
||||
hass.loadBackendTranslation("options", configEntry.domain),
|
||||
]);
|
||||
return step;
|
||||
},
|
||||
handleFlowStep: handleOptionsFlowStep,
|
||||
deleteFlow: deleteOptionsFlow,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user