Skip to content

Commit

Permalink
fix(upload-list): undefined files count in the header (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut authored Feb 3, 2023
1 parent e38cce3 commit c897986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blocks/UploadList/UploadList.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class UploadList extends UploaderBlock {
return localizedText('succeed');
}

return localizedText('selected');
return localizedText('total');
}

initCallback() {
Expand Down
2 changes: 1 addition & 1 deletion blocks/themes/lr-basic/l10n.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
--l10n-header-uploading: 'Uploading {{count}} {{plural:file(count)}}';
--l10n-header-failed: '{{count}} {{plural:error(count)}}';
--l10n-header-succeed: '{{count}} {{plural:file(count)}} uploaded';
--l10n-header-selected: '{{count}} {{plural:file(count)}} selected';
--l10n-header-total: '{{count}} {{plural:file(count)}} selected';

--l10n-src-type-local: 'From device';
--l10n-src-type-from-url: 'From link';
Expand Down

0 comments on commit c897986

Please sign in to comment.