This commit is contained in:
Manav Rathi
2024-08-20 10:45:20 +05:30
parent 5cd093c413
commit 19c6ebefd3

View File

@@ -11,6 +11,17 @@ interface Iprops {
storage: number;
}
export function IndividualUsageSection({ usage, storage, fileCount }: Iprops) {
// [Note: Fallback translation for languages with multiple plurals]
//
// Languages like Polish and Arabian have multiple plural forms, and
// currently i18n falls back to the base language translation instead of the
// "_other" form if all the plural forms are not listed out.
//
// As a workaround, name the _other form as the unprefixed name. That is,
// instead of calling the most general plural form as foo_count_other, call
// it foo_count (To keep our heads straight, we adopt the convention that
// all such pluralizable strings use the _count suffix, but that's not a
// requirement from the library).
return (
<Box width="100%">
<Progressbar value={Math.min((usage * 100) / storage, 100)} />