Skip to content

Commit

Permalink
Translate text on Profile page (#1820)
Browse files Browse the repository at this point in the history
* Translate text on Profile page

* Fix typo

---------

Co-authored-by: ani-kalpachka <[email protected]>
  • Loading branch information
ani-kalpachka and ani-kalpachka authored May 27, 2024
1 parent 198391e commit fa22673
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/locales/bg/profile.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"header": "Личен профил",
"corporate-header": "Корпоративен профил",
"campaigns": "Подкрепени кампании",
"notAuthenticated": "Потребителят не е удостоверен.",
"personalInfo": {
"index": "Лична информация",
"login": "Данни за вход:",
Expand Down
1 change: 1 addition & 0 deletions public/locales/en/profile.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:",
Expand Down
2 changes: 1 addition & 1 deletion src/components/client/auth/profile/ProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function ProfilePage() {
}

if (status !== 'authenticated') {
return <StyledLayout title={t('nav.profile')}>Not authenticated</StyledLayout>
return <StyledLayout title={t('nav.profile')}>{t('profile:notAuthenticated')}</StyledLayout>
}

if (isError && userError.response && userError.response.status === 401) {
Expand Down

0 comments on commit fa22673

Please sign in to comment.