third person

master
alex 2024-01-28 21:04:44 +01:00
parent 49be41bc65
commit 9f5344ecbe
4 changed files with 18 additions and 4 deletions

View File

@ -27,9 +27,11 @@
"action": "Aktion",
"username": "Anzeigename",
"usernamePlaceholder": "Geben Sie Ihren Anzeigename ein",
"usernamePlaceholderThirdPerson": "Geben Sie den Anzeigename ein",
"usernameInfo": "Der Anzeigename wird verwendet, um Sie im Dashboard anzuzeigen.",
"accountName": "Benutzername",
"accountNamePlaceholder": "Geben Sie Ihren Benutzernamen ein",
"accountNamePlaceholderThirdPerson": "Geben Sie den Benutzernamen ein",
"accountNameInfo": "Der Benutzername wird verwendet, um sich anzumelden.",
"password": "Passwort",
"passwordPlaceholder": "Geben Sie Ihr Passwort ein",

View File

@ -28,8 +28,10 @@
"username": "Username",
"usernamePlaceholder": "Enter your username",
"usernameInfo": "The display name is used to display you in the dashboard.",
"usernamePlaceholderThirdPerson": "Enter the username",
"accountName": "Account name",
"accountNamePlaceholder": "Enter your account name",
"accountNamePlaceholderThirdPerson": "Enter the account name",
"accountNameInfo": "The account name is used to log in.",
"password": "Password",
"passwordPlaceholder": "Enter your password",

View File

@ -7,6 +7,7 @@ export function MyUsernameFormInput({
propsFormItem,
propsInput,
showSkeleton,
thirdPerson,
}) {
const { t } = useTranslation();
@ -26,7 +27,11 @@ export function MyUsernameFormInput({
minLength: Constants.GLOBALS.MIN_USERNAME_LENGTH,
}
)}
inputPlaceholder={t("common.usernamePlaceholder")}
inputPlaceholder={
thirdPerson
? t("common.usernamePlaceholderThirdPerson")
: t("common.usernamePlaceholder")
}
/>
);
}
@ -37,6 +42,7 @@ export function MyAccountNameFormInput({
disableAccountNameCheck,
hasFeedback,
showSkeleton,
thirdPerson,
}) {
const { t } = useTranslation();
@ -58,7 +64,11 @@ export function MyAccountNameFormInput({
}
)}
ruleMessageValueNotAvailable={t("common.inputRules.accountNameTaken")}
inputPlaceholder={t("common.accountNamePlaceholder")}
inputPlaceholder={
thirdPerson
? t("common.accountNamePlaceholderThirdPerson")
: t("common.accountNamePlaceholder")
}
inputType="text"
disableAvailableCheck={disableAccountNameCheck}
fetchUrl="/user/auth/check/accountname"

View File

@ -439,9 +439,9 @@ function ModalAddEditEmployee({
checkboxSetPasswordOnLogging: true,
}}
>
<MyUsernameFormInput />
<MyUsernameFormInput thirdPerson />
<MyAccountNameFormInput hasFeedback />
<MyAccountNameFormInput hasFeedback thirdPerson />
{modalOptions.mode === "add" && (
<>