Skip to content

Commit

Permalink
change progress the to "of unknown"
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Nov 25, 2024
1 parent 927db35 commit ae08b3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@uppy/status-bar/src/Components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function ProgressDetails(props: ProgressDetailsProps) {
complete: totalUploadedSizeStr,
total: prettierBytes(totalSize),
})
: totalUploadedSizeStr}
: i18n('dataUploadedOfUnknown', { complete: totalUploadedSizeStr })}

{renderDot()}

Expand Down
1 change: 1 addition & 0 deletions packages/@uppy/status-bar/src/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default {
},
// When `showProgressDetails` is set, shows the amount of bytes that have been uploaded so far.
dataUploadedOfTotal: '%{complete} of %{total}',
dataUploadedOfUnknown: '%{complete} of unknown',
// When `showProgressDetails` is set, shows an estimation of how long the upload will take to complete.
xTimeLeft: '%{time} left',
// Used as the label for the button that starts an upload.
Expand Down

0 comments on commit ae08b3c

Please sign in to comment.