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