diff options
Diffstat (limited to 'packages/demobank-ui/src/context/translation.ts')
-rw-r--r-- | packages/demobank-ui/src/context/translation.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/demobank-ui/src/context/translation.ts b/packages/demobank-ui/src/context/translation.ts index a50f81b86..478bdbde0 100644 --- a/packages/demobank-ui/src/context/translation.ts +++ b/packages/demobank-ui/src/context/translation.ts @@ -22,7 +22,7 @@ import { i18n, setupI18n } from "@gnu-taler/taler-util"; import { createContext, h, VNode } from "preact"; import { useContext, useEffect } from "preact/hooks"; -import { useLang } from "../hooks/useLang.js"; +import { hooks } from "@gnu-taler/web-util/lib/index.browser"; import { strings } from "../i18n/strings.js"; interface Type { @@ -70,7 +70,7 @@ export const TranslationProvider = ({ children, forceLang, }: Props): VNode => { - const [lang, changeLanguage, isSaved] = useLang(initial); + const [lang, changeLanguage, isSaved] = hooks.useLang(initial); useEffect(() => { if (forceLang) { changeLanguage(forceLang); |