-
Notifications
You must be signed in to change notification settings - Fork 75
/
i18n.ts
26 lines (24 loc) 路 1.32 KB
/
i18n.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { createUseI18n } from "keycloakify/login";
export const { useI18n } = createUseI18n({
// 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
en: {
alphanumericalCharsOnly: "Only alphanumerical characters",
gender: "Gender",
// Here we overwrite the default english value for the message "doForgotPassword"
// that is "Forgot Password?" see: https://github.com/InseeFrLab/keycloakify/blob/f0ae5ea908e0aa42391af323b6d5e2fd371af851/src/lib/i18n/generated_messages/18.0.1/login/en.ts#L17
doForgotPassword: "I forgot my password",
invalidUserMessage: "Invalid username or password. (this message was overwrite in the theme)"
},
fr: {
/* spell-checker: disable */
alphanumericalCharsOnly: "Caract猫re alphanum茅rique uniquement",
gender: "Genre",
doForgotPassword: "J'ai oubli茅 mon mot de passe",
invalidUserMessage: "Nom d'utilisateur ou mot de passe invalide. (ce message a 茅t茅 茅cras茅 dans le th猫me)"
/* spell-checker: enable */
}
});
export type I18n = NonNullable<ReturnType<typeof useI18n>>;