i18n need to be passed as props if we want to be able to ovewrite
This commit is contained in:
@ -1,10 +1,13 @@
|
||||
import React from "react";
|
||||
import Fallback from "../../dist/account/Fallback";
|
||||
import { useI18n } from "./i18n";
|
||||
import type { KcContext } from "./KcContext";
|
||||
import Template from "../../dist/account/Template";
|
||||
|
||||
export default function KcApp(props: { kcContext: KcContext }) {
|
||||
const { kcContext } = props;
|
||||
|
||||
return <Fallback kcContext={kcContext} Template={Template} doUseDefaultCss={true} />;
|
||||
const { i18n } = useI18n({ kcContext });
|
||||
|
||||
return <Fallback kcContext={kcContext} i18n={i18n} Template={Template} doUseDefaultCss={true} />;
|
||||
}
|
||||
|
Reference in New Issue
Block a user