From 9f5344ecbe71512590f6fd97973fb3d93c0d7e26 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 28 Jan 2024 21:04:44 +0100 Subject: [PATCH] third person --- public/locales/de/translation.json | 2 ++ public/locales/en/translation.json | 2 ++ src/Components/MyFormInputs/index.js | 14 ++++++++++++-- src/Pages/Store/Employees/index.js | 4 ++-- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json index 6a03d0b..5a7319b 100644 --- a/public/locales/de/translation.json +++ b/public/locales/de/translation.json @@ -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", diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index de510d3..e36f132 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -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", diff --git a/src/Components/MyFormInputs/index.js b/src/Components/MyFormInputs/index.js index 791e2dd..5cc984f 100644 --- a/src/Components/MyFormInputs/index.js +++ b/src/Components/MyFormInputs/index.js @@ -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" diff --git a/src/Pages/Store/Employees/index.js b/src/Pages/Store/Employees/index.js index cdecc04..627f0bf 100644 --- a/src/Pages/Store/Employees/index.js +++ b/src/Pages/Store/Employees/index.js @@ -439,9 +439,9 @@ function ModalAddEditEmployee({ checkboxSetPasswordOnLogging: true, }} > - + - + {modalOptions.mode === "add" && ( <>