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

@ -35,6 +35,12 @@ export default function App(props: { kcContext: KcContext; }) {
if (i18n === null) { if (i18n === null) {
return null; 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"> = { const pageProps: Omit<PageProps<any, typeof i18n>, "kcContext"> = {
i18n, i18n,