From c58f6c54cee44bf22660414225ef0893ffafa2ab Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Wed, 29 Jul 2026 04:03:34 +0200 Subject: [PATCH] fix(import): pluralize the panel's count strings A single-item import rendered "1 conversations", "1 attachment(s)", and "1 items could not be imported". The counts now use the i18next plural convention already established by com_ui_tools_count, with the secondary numbers left bare where they read correctly either way. --- .../Nav/SettingsTabs/Data/Import/Progress.tsx | 10 +++++----- .../Nav/SettingsTabs/Data/Import/Summary.tsx | 6 +++--- client/src/locales/en/translation.json | 15 ++++++++++----- 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/client/src/components/Nav/SettingsTabs/Data/Import/Progress.tsx b/client/src/components/Nav/SettingsTabs/Data/Import/Progress.tsx index 114f9b5fff..53c1807e42 100644 --- a/client/src/components/Nav/SettingsTabs/Data/Import/Progress.tsx +++ b/client/src/components/Nav/SettingsTabs/Data/Import/Progress.tsx @@ -62,14 +62,14 @@ export default function Progress({ job, onCancel, onReset, isCancelling }: Progr <>

{localize('com_ui_import_report', { - 0: job.report.imported, - 1: job.report.skipped, + count: job.report.imported, + skipped: job.report.skipped, })}

{localize('com_ui_import_report_assets', { - 0: job.report.assetsImported, - 1: job.report.assetsUnavailable, + count: job.report.assetsImported, + unavailable: job.report.assetsUnavailable, })}

@@ -116,7 +116,7 @@ export default function Progress({ job, onCancel, onReset, isCancelling }: Progr {isTerminal && job.report && job.report.errors.length > 0 && (
- {localize('com_ui_import_errors', { 0: job.report.errors.length })} + {localize('com_ui_import_errors', { count: job.report.errors.length })}