confirm_dialog: Convert heading, yes button messages to FormatJS.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-04-12 20:24:31 -07:00
committed by Tim Abbott
parent a397d51670
commit 00fb1aaadc
5 changed files with 20 additions and 14 deletions

View File

@@ -833,9 +833,12 @@ export function initialize() {
confirm_dialog.launch({
parent: modal_parent,
html_heading: i18n.t("Unsubscribe from __stream_name__", {stream_name: sub.name}),
html_heading: $t_html(
{defaultMessage: "Unsubscribe from {stream_name}"},
{stream_name: sub.name},
),
html_body,
html_yes_button: i18n.t("Yes, unsubscribe from this stream"),
html_yes_button: $t_html({defaultMessage: "Yes, unsubscribe from this stream"}),
on_click: remove_user_from_private_stream,
});
return;