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.

i18n: Fix translated strings for delete profile field option.

Lauryn Menardc4f1d44dd737
diff --git a/web/src/settings_profile_fields.ts b/web/src/settings_profile_fields.ts
index 96479e43155..d5b0cc18f52 100644
--- a/web/src/settings_profile_fields.ts
+++ b/web/src/settings_profile_fields.ts
@@ -331,12 +331,14 @@ function show_modal_for_deleting_options(
deleted_values,
});
- let modal_heading_text = "Delete this option?";
- if (deleted_options_count !== 1) {
- modal_heading_text = "Delete these options?";
- }
confirm_dialog.launch({
- html_heading: $t_html({defaultMessage: "{modal_heading_text}"}, {modal_heading_text}),
+ html_heading: $t_html(
+ {
+ defaultMessage:
+ "{N, plural, one {Delete this option?} other {Delete these options?}}",
+ },
+ {N: deleted_options_count},
+ ),
html_body,
on_click: update_profile_field,
});