From 2506419394bb4eef7cc5cc678500a9a4bbac95e0 Mon Sep 17 00:00:00 2001 From: Kalina Zhecheva <60223025+kzhecheva@users.noreply.github.com> Date: Thu, 16 Nov 2023 11:51:58 +0200 Subject: [PATCH] fix: aligns campaignType translation (#1668) --- public/locales/bg/campaigns.json | 20 +++++++++++++++++++ public/locales/en/campaigns.json | 2 +- .../CampaignInfo/CampaignInfoStatus.tsx | 4 +++- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/public/locales/bg/campaigns.json b/public/locales/bg/campaigns.json index 05152bd31..189534c6f 100644 --- a/public/locales/bg/campaigns.json +++ b/public/locales/bg/campaigns.json @@ -236,5 +236,25 @@ "disabled": "Деактивирана", "error": "Грешна", "deleted": "Изтрита" + }, + "campaignTypesFields": { + "treatment": "Лечение и рехабилитация", + "transplatation": "Трансплантация", + "cancer": "Рак", + "leukemia": "Левкемия", + "geneticDiseases": "Генетични заболявания", + "rehabilitation": "Рехабилитация", + "helping": "Помогни на нуждаещ се", + "kidsInRisk": "Деца в риск", + "thirdAge": "Трета възраст", + "homesForChildren": "Домове за деца", + "nursingHomes": "Старчески домове", + "betterSociety": "По-добро общество", + "education": "Обучение", + "culture": "Култура", + "nature": "Природа", + "human-rights": "Човешки права", + "animals": "Животни", + "disasters": "Бедствия" } } diff --git a/public/locales/en/campaigns.json b/public/locales/en/campaigns.json index c4ec537bb..af63db9e6 100644 --- a/public/locales/en/campaigns.json +++ b/public/locales/en/campaigns.json @@ -246,7 +246,7 @@ "education": "Education", "culture": "Culture", "nature": "Nature", - "humanRights": "Human rights", + "human-rights": "Human rights", "animals": "Animals", "disasters": "Disasters" } diff --git a/src/components/client/campaigns/CampaignInfo/CampaignInfoStatus.tsx b/src/components/client/campaigns/CampaignInfo/CampaignInfoStatus.tsx index 9a2a3566d..26bc33c5c 100644 --- a/src/components/client/campaigns/CampaignInfo/CampaignInfoStatus.tsx +++ b/src/components/client/campaigns/CampaignInfo/CampaignInfoStatus.tsx @@ -58,7 +58,9 @@ export default function CampaignInfoStatus({ campaign, showExpensesLink }: Props - {campaign.campaignType.name} + + {t(`campaigns:campaignTypesFields.${campaign.campaignType.slug}`)} + {t('campaigns:campaign.status')} {t(`campaigns:campaign-status.${campaign.state}`)}