diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx b/src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx index bfcb2c8..a95d47b 100644 --- a/src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx +++ b/src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx @@ -17,7 +17,7 @@ export type UserProfileFormFieldsProps = { export function UserProfileFormFields(props: UserProfileFormFieldsProps) { const { kcContext, onIsFormSubmittableValueChange, i18n, getClassName, BeforeField, AfterField } = props; - const { advancedMsg } = i18n; + const { advancedMsg, msg } = i18n; const { formValidationState: { fieldStateByAttributeName, isFormSubmittable }, @@ -99,7 +99,9 @@ export function UserProfileFormFields(props: UserProfileFormFieldsProps) { value={value} > <> - <option value="" selected disabled hidden>Select an option</option> + <option value="" selected disabled hidden> + {msg("selectAnOption")} + </option> {options.options.map(option => ( <option key={option} value={option}> {option} @@ -172,4 +174,4 @@ export function UserProfileFormFields(props: UserProfileFormFieldsProps) { })} </> ); -} +}
\ No newline at end of file |