Web: Changed translation.

This commit is contained in:
Tatiana Lopaeva 2022-11-07 10:43:32 +03:00
parent dbd34303f1
commit 7073fc2fce
3 changed files with 28 additions and 22 deletions

View File

@ -38,7 +38,7 @@
"SendRequest": "Send request",
"TotalPricePerMonth": "<1>{{currencySymbol}}</1><2>{{price}}</2><3>/month</3>",
"UpgradeNow": "Upgrade now",
"UserNotFound": "User <1>«{{email}}»</1> is not found",
"UserNotFound": "User <1>{{email}}</1> is not found",
"YourPrice": "Your price",
"PaymentOverdue": "Cannot add new users.",
"BusinessPlanPaymentOverdue": "Cannot add new users. Business plan payment overdue",

View File

@ -37,6 +37,6 @@
"SendRequest": "Отправить запрос",
"TotalPricePerMonth": "<1>{{currencySymbol}}</1><2>{{price}}</2><3>/месяц</3>",
"UpgradeNow": "Обновить прямо сейчас",
"UserNotFound": "Пользователь <1>«{{email}}»</1> не найден",
"UserNotFound": "Пользователь <1>{{email}}</1> не найден",
"YourPrice": "Ваша стоимость"
}

View File

@ -130,25 +130,31 @@ const PayerInformationContainer = ({
</>
);
const payerName = (
<Text as="span" fontWeight={600} noSelect fontSize={"14px"}>
{payerInfo ? (
payerInfo.displayName
) : (
<Trans t={t} i18nKey="UserNotFound" ns="Payments">
User
<Text
as="span"
color={theme.client.settings.payment.warningColor}
fontWeight={600}
>
{{ email }}
</Text>
is not found
</Trans>
)}
</Text>
);
const payerName = () => {
let emailUnfoundedUser = email;
if (email) emailUnfoundedUser = "«" + emailUnfoundedUser + "»";
return (
<Text as="span" fontWeight={600} noSelect fontSize={"14px"}>
{payerInfo ? (
payerInfo.displayName
) : (
<Trans t={t} i18nKey="UserNotFound" ns="Payments">
User
<Text
as="span"
color={theme.client.settings.payment.warningColor}
fontWeight={600}
>
{{ email: emailUnfoundedUser }}
</Text>
is not found
</Trans>
)}
</Text>
);
};
const avatarUrl = payerInfo ? { source: payerInfo.avatar } : {};
@ -165,7 +171,7 @@ const PayerInformationContainer = ({
<div className="payer-info_wrapper">
<div className="payer-info_description">
{payerName}
{payerName()}
<Text as="span" className="payer-info">
{" (" + t("Payer") + ") "}