Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(veeam-backup): fix space unit translation #14508

Merged
merged 4 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"billing_contact": "{{code}} Abrechnung",
"technical_contact": "{{code}} Technik",
"location": "Standort",
"terminated_service": "Der Dienst wurde gekündigt."
"terminated_service": "Der Dienst wurde gekündigt.",
"gigabyte": "GB",
"terabyte": "TB",
"space_summary": "{{usedSpaceInGB}} GB ({{percent}}% von {{quotaInTB}} TB)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"billing_contact": "{{code}} Billing",
"technical_contact": "{{code}} Technical",
"location": "Location",
"terminated_service": "The service has been cancelled."
"terminated_service": "The service has been cancelled.",
"gigabyte": "GB",
"terabyte": "TB",
"space_summary": "{{usedSpaceInGB}} GB ({{percent}}% of {{quotaInTB}} TB)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"billing_contact": "{{code}} Facturación",
"technical_contact": "{{code}} Técnico",
"location": "Localización",
"terminated_service": "El servicio se ha dado de baja."
"terminated_service": "El servicio se ha dado de baja.",
"gigabyte": "GB",
"terabyte": "TB",
"space_summary": "{{usedSpaceInGB}} GB ({{percent}}% de {{quotaInTB}} TB)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"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é.",
"space_summary": "{{usedSpaceInGB}} Go ({{percent}}% de {{quotaInTB}} To)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"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é.",
"space_summary": "{{usedSpaceInGB}} Go ({{percent}}% de {{quotaInTB}} To)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"billing_contact": "{{code}} Fatturazione",
"technical_contact": "{{code}} Tecnico",
"location": "Localizzazione",
"terminated_service": "Il servizio è stato disattivato."
"terminated_service": "Il servizio è stato disattivato.",
"gigabyte": "GB",
"terabyte": "TB",
"space_summary": "{{usedSpaceInGB}} GB ({{percent}}% di {{quotaInTB}} TB)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"billing_contact": "{{code}} Kontakt księgowy",
"technical_contact": "{{code}} Kontakt techniczny",
"location": "Lokalizacja",
"terminated_service": "Usługa została zakończona."
"terminated_service": "Usługa została zakończona.",
"gigabyte": "GB",
"terabyte": "TB",
"space_summary": "{{usedSpaceInGB}} GB ({{percent}}% z {{quotaInTB}} TB)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"billing_contact": "{{code}} Faturação",
"technical_contact": "{{code}} Técnico",
"location": "Localização",
"terminated_service": "O serviço foi rescindido."
"terminated_service": "O serviço foi rescindido.",
"gigabyte": "GB",
"terabyte": "TB",
"space_summary": "{{usedSpaceInGB}} GB ({{percent}}% de {{quotaInTB}} TB)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const OfferProgress: React.FC<VeeamBackupOffer> = ({
}) => {
const { t } = useTranslation('dashboard');
const percent = (usedSpaceInGB / (quotaInTB * 10)).toFixed(2);
const label = `${usedSpaceInGB} Go / ${quotaInTB} To (${percent}%)`;

return (
<div className="flex flex-col">
Expand All @@ -34,7 +33,7 @@ export const OfferProgress: React.FC<VeeamBackupOffer> = ({
size={ODS_TEXT_SIZE._500}
color={ODS_THEME_COLOR_INTENT.text}
>
{label}
{t('space_summary', { usedSpaceInGB, quotaInTB, percent })}
</OsdsText>
<OsdsTooltip>
<OsdsIcon
Expand Down
Loading