Update KcApp.tsx

Signed-off-by: Joseph Garrone <joseph.garrone.gj@gmail.com>
This commit is contained in:
Joseph Garrone 2023-03-04 16:16:26 +01:00 committed by GitHub
parent 58fa92f5ac
commit 92abd21618
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,12 @@ export default function App(props: { kcContext: KcContext; }) {
return null;
}
/*
* Examples assuming i18n.currentLanguageTag === "en":
* i18n.msg("access-denied") === <span>Access denied</span>
* i18n.msg("foo") === <span>foo in English</span>
*/
const pageProps: Omit<PageProps<any, typeof i18n>, "kcContext"> = {
i18n,
// Here we have overloaded the default template, however you could use the default one with: