From c8979864c6fe1a3ac1231caff1538263356ecf66 Mon Sep 17 00:00:00 2001 From: Aleksandr Grenishin Date: Fri, 3 Feb 2023 11:41:44 +0400 Subject: [PATCH] fix(upload-list): undefined files count in the header (#376) --- blocks/UploadList/UploadList.js | 2 +- blocks/themes/lr-basic/l10n.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/UploadList/UploadList.js b/blocks/UploadList/UploadList.js index babc16122..24d6558f3 100644 --- a/blocks/UploadList/UploadList.js +++ b/blocks/UploadList/UploadList.js @@ -165,7 +165,7 @@ export class UploadList extends UploaderBlock { return localizedText('succeed'); } - return localizedText('selected'); + return localizedText('total'); } initCallback() { diff --git a/blocks/themes/lr-basic/l10n.css b/blocks/themes/lr-basic/l10n.css index b42ae87f6..1b406b4f9 100644 --- a/blocks/themes/lr-basic/l10n.css +++ b/blocks/themes/lr-basic/l10n.css @@ -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';