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", "action": "Aktion",
"username": "Anzeigename", "username": "Anzeigename",
"usernamePlaceholder": "Geben Sie Ihren Anzeigename ein", "usernamePlaceholder": "Geben Sie Ihren Anzeigename ein",
"usernamePlaceholderThirdPerson": "Geben Sie den Anzeigename ein",
"usernameInfo": "Der Anzeigename wird verwendet, um Sie im Dashboard anzuzeigen.", "usernameInfo": "Der Anzeigename wird verwendet, um Sie im Dashboard anzuzeigen.",
"accountName": "Benutzername", "accountName": "Benutzername",
"accountNamePlaceholder": "Geben Sie Ihren Benutzernamen ein", "accountNamePlaceholder": "Geben Sie Ihren Benutzernamen ein",
"accountNamePlaceholderThirdPerson": "Geben Sie den Benutzernamen ein",
"accountNameInfo": "Der Benutzername wird verwendet, um sich anzumelden.", "accountNameInfo": "Der Benutzername wird verwendet, um sich anzumelden.",
"password": "Passwort", "password": "Passwort",
"passwordPlaceholder": "Geben Sie Ihr Passwort ein", "passwordPlaceholder": "Geben Sie Ihr Passwort ein",

View File

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

View File

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

View File

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