mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Fix demo loadFragmentTranslation
This commit is contained in:
parent
2bbb1bfa7e
commit
b6d6e2fd4b
@ -271,7 +271,10 @@ export const provideHass = (
|
||||
updateStates,
|
||||
updateTranslations,
|
||||
addTranslations,
|
||||
loadFragmentTranslation: async (_fragment: string) => hass().localize,
|
||||
loadFragmentTranslation: async (fragment: string) => {
|
||||
await updateTranslations(fragment);
|
||||
return hass().localize;
|
||||
},
|
||||
addEntities,
|
||||
mockWS(type, callback) {
|
||||
wsCommands[type] = callback;
|
||||
|
Loading…
x
Reference in New Issue
Block a user