Replies: 3 comments 2 replies
-
Hello @AlexBab11, The i18n key you have to override is Ref: https://docs.keycloakify.dev/i18n/adding-new-translation-messages-or-changing-the-default-ones |
Beta Was this translation helpful? Give feedback.
-
So as you see I added the translation to this message but it wont show in storybook, is that because storybook has it's own message? Like if we add story we can see it: |
Beta Was this translation helpful? Give feedback.
-
It's not realy like that, it's just that certain messages get resolved by Keycloak (like kcContext.message.summary and kcContext.messagesPerFields).
Sure you can change anything you want, just edit the kcContext like:
export default function KcPage(props: { kcContext: KcContext }) {
const { kcContext } = props;
const { i18n } = useI18n({ kcContext });
if( kcContext.pageId === "login-verify-email.ftl" ){
kcContext.message.type = "info"
}
return (
<Suspense>
{(() => {
switch (kcContext.pageId) {
default:
return (
<DefaultPage
kcContext={kcContext}
i18n={i18n}
classes={classes}
Template={Template}
doUseDefaultCss={true}
UserProfileFormFields={UserProfileFormFields}
doMakeUserConfirmPassword={doMakeUserConfirmPassword}
/>
);
}
})()}
</Suspense>
);
} |
Beta Was this translation helpful? Give feedback.
-
Hi, could you please help me to change the warning message to info and change it's text? I would like to change exactly this one, but can't find where:

Beta Was this translation helpful? Give feedback.
All reactions