From d34202dec55bb8ed55d62695c148deec9adceaab Mon Sep 17 00:00:00 2001 From: Paul Dickerson Date: Mon, 9 Dec 2024 17:21:30 +0100 Subject: [PATCH] fix(veeam-backup): fix space unit displayed ref: MANAGER-16236 Signed-off-by: Paul Dickerson --- .../public/translations/dashboard/Messages_fr_FR.json | 4 +++- .../src/pages/dashboard/OfferProgress.component.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/manager/apps/veeam-backup/public/translations/dashboard/Messages_fr_FR.json b/packages/manager/apps/veeam-backup/public/translations/dashboard/Messages_fr_FR.json index a392009f0f99..dcdddb581855 100644 --- a/packages/manager/apps/veeam-backup/public/translations/dashboard/Messages_fr_FR.json +++ b/packages/manager/apps/veeam-backup/public/translations/dashboard/Messages_fr_FR.json @@ -22,5 +22,7 @@ "administrator_contact": "{{code}} Administrateur", "billing_contact": "{{code}} Facturation", "technical_contact": "{{code}} Technique", - "terminated_service": "Le service a été résilié." + "terminated_service": "Le service a été résilié.", + "gigabyte": "Go", + "terabyte": "To" } diff --git a/packages/manager/apps/veeam-backup/src/pages/dashboard/OfferProgress.component.tsx b/packages/manager/apps/veeam-backup/src/pages/dashboard/OfferProgress.component.tsx index 1eaafae6323e..38f219745c1f 100644 --- a/packages/manager/apps/veeam-backup/src/pages/dashboard/OfferProgress.component.tsx +++ b/packages/manager/apps/veeam-backup/src/pages/dashboard/OfferProgress.component.tsx @@ -24,7 +24,9 @@ export const OfferProgress: React.FC = ({ }) => { const { t } = useTranslation('dashboard'); const percent = (usedSpaceInGB / (quotaInTB * 10)).toFixed(2); - const label = `${usedSpaceInGB} Go / ${quotaInTB} To (${percent}%)`; + const usedSpaceLabel = `${usedSpaceInGB} ${t('gigabyte')}`; + const quotaSpaceLabel = `${quotaInTB} ${t('terabyte')}`; + const label = `${usedSpaceLabel} / ${quotaSpaceLabel} (${percent}%)`; return (