Skip to content

Commit

Permalink
fix: aligns campaignType translation (podkrepi-bg#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzhecheva authored and RalitsaIlieva committed Dec 14, 2023
1 parent e4b8d31 commit 2506419
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions public/locales/bg/campaigns.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "Бедствия"
}
}
2 changes: 1 addition & 1 deletion public/locales/en/campaigns.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
"education": "Education",
"culture": "Culture",
"nature": "Nature",
"humanRights": "Human rights",
"human-rights": "Human rights",
"animals": "Animals",
"disasters": "Disasters"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ export default function CampaignInfoStatus({ campaign, showExpensesLink }: Props
</Box>
<InfoStatusWrapper>
<Grid item xs={12} md={6}>
<StatusLabel>{campaign.campaignType.name}</StatusLabel>
<StatusLabel>
{t(`campaigns:campaignTypesFields.${campaign.campaignType.slug}`)}
</StatusLabel>
<RowWrapper>
<StatusLabel variant="body2">{t('campaigns:campaign.status')}</StatusLabel>
<StatusText>{t(`campaigns:campaign-status.${campaign.state}`)}</StatusText>
Expand Down

0 comments on commit 2506419

Please sign in to comment.