Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings_export: Fix plural strings in export confirmation modal.

PieterCKe9be0c54bda8
diff --git a/web/src/settings_exports.ts b/web/src/settings_exports.ts
index af8f87d829f..6704f8afd43 100644
--- a/web/src/settings_exports.ts
+++ b/web/src/settings_exports.ts
@@ -324,8 +324,11 @@ function show_start_export_modal(): void {
$("#allow_private_data_export_stats").text(
$t(
{
- defaultMessage:
- "Exporting private data for {users_consented_for_export_count} users ({total_users_count} users total).",
+ defaultMessage: `
+ Exporting private data for {users_consented_for_export_count,
+ plural, one {# user} other {# users}} ({total_users_count,
+ plural, one {# user} other {# users}} total).
+ `,
},
{users_consented_for_export_count, total_users_count},
),
@@ -464,8 +467,11 @@ function update_start_export_modal_stats(): void {
$("#allow_private_data_export_stats").text(
$t(
{
- defaultMessage:
- "Exporting private data for {users_consented_for_export_count} users ({total_users_count} users total).",
+ defaultMessage: `
+ Exporting private data for {users_consented_for_export_count,
+ plural, one {# user} other {# users}} ({total_users_count,
+ plural, one {# user} other {# users}} total).
+ `,
},
{users_consented_for_export_count, total_users_count},
),