Skip to content

🎥 Make videos programmatically with React

better formatting

Patric Salvisbergf474599113b5
diff --git a/packages/cli/src/progress-bar.ts b/packages/cli/src/progress-bar.ts
index 168b7a28e4..a79c27d4cc 100644
--- a/packages/cli/src/progress-bar.ts
+++ b/packages/cli/src/progress-bar.ts
@@ -6,6 +6,7 @@ import {
getFileSizeDownloadBar,
makeMultiDownloadProgress,
} from './download-progress';
+import {formatBytes} from './format-bytes';
import {makeProgressBar} from './make-progress-bar';
import type {
AggregateRenderProgress,
@@ -273,13 +274,7 @@ const getGuiProgressSubtitle = (progress: AggregateRenderProgress): string => {
}
if (progress.copyingState.doneIn === null) {
- const bytes = new Intl.NumberFormat('en', {
- notation: 'compact',
- style: 'unit',
- unit: 'byte',
- unitDisplay: 'narrow',
- });
- return `Copying public dir ${bytes.format(progress.copyingState.bytes)}`;
+ return `Copying public dir ${formatBytes(progress.copyingState.bytes)}`;
}
if (!progress.rendering) {