From fa22673ca62b88d5bc8d75112e67fc58b1ee4040 Mon Sep 17 00:00:00 2001 From: Ani Date: Mon, 27 May 2024 20:34:39 +0300 Subject: [PATCH] Translate text on Profile page (#1820) * Translate text on Profile page * Fix typo --------- Co-authored-by: ani-kalpachka --- public/locales/bg/profile.json | 1 + public/locales/en/profile.json | 1 + src/components/client/auth/profile/ProfilePage.tsx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public/locales/bg/profile.json b/public/locales/bg/profile.json index 2c46fb0d7..745a77ac2 100644 --- a/public/locales/bg/profile.json +++ b/public/locales/bg/profile.json @@ -2,6 +2,7 @@ "header": "Личен профил", "corporate-header": "Корпоративен профил", "campaigns": "Подкрепени кампании", + "notAuthenticated": "Потребителят не е удостоверен.", "personalInfo": { "index": "Лична информация", "login": "Данни за вход:", diff --git a/public/locales/en/profile.json b/public/locales/en/profile.json index 947df94f7..0a15755e2 100644 --- a/public/locales/en/profile.json +++ b/public/locales/en/profile.json @@ -2,6 +2,7 @@ "header": "Personal profile", "corporate-header": "Corporate Profile", "campaigns": "Supported campaigns", + "notAuthenticated": "User is not authenticated.", "personalInfo": { "index": "Personal information", "login": "Login information:", diff --git a/src/components/client/auth/profile/ProfilePage.tsx b/src/components/client/auth/profile/ProfilePage.tsx index d3b3cc2ab..5ab655bb3 100644 --- a/src/components/client/auth/profile/ProfilePage.tsx +++ b/src/components/client/auth/profile/ProfilePage.tsx @@ -64,7 +64,7 @@ export default function ProfilePage() { } if (status !== 'authenticated') { - return Not authenticated + return {t('profile:notAuthenticated')} } if (isError && userError.response && userError.response.status === 401) {