From 92abd2161813fbd931cc475bc80824f5c51b0e76 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Sat, 4 Mar 2023 16:16:26 +0100 Subject: [PATCH] Update KcApp.tsx Signed-off-by: Joseph Garrone --- src/keycloak-theme/KcApp.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/keycloak-theme/KcApp.tsx b/src/keycloak-theme/KcApp.tsx index de1f801..514b01e 100644 --- a/src/keycloak-theme/KcApp.tsx +++ b/src/keycloak-theme/KcApp.tsx @@ -35,6 +35,12 @@ export default function App(props: { kcContext: KcContext; }) { if (i18n === null) { return null; } + + /* + * Examples assuming i18n.currentLanguageTag === "en": + * i18n.msg("access-denied") === Access denied + * i18n.msg("foo") === foo in English + */ const pageProps: Omit, "kcContext"> = { i18n,