Update i18n.ts

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

View File

@ -6,6 +6,10 @@ export function useI18n(props: Props) {
const { kcContext } = props; const { kcContext } = props;
return useI18nBase({ return useI18nBase({
kcContext, kcContext,
// NOTE: Here you can override the default i18n messages
// or define new ones that, for example, you would have
// defined in the Keycloak admin UI for UserProfile
// https://user-images.githubusercontent.com/6702424/182050652-522b6fe6-8ee5-49df-aca3-dba2d33f24a5.png
"extraMessages": { "extraMessages": {
"en": { "en": {
"alphanumericalCharsOnly": "Only alphanumerical characters", "alphanumericalCharsOnly": "Only alphanumerical characters",