mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
confirm_dialog: Convert heading, yes button messages to FormatJS.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
a397d51670
commit
00fb1aaadc
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user