compose: Replace accidental usage of underscore for “translation”.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-24 17:56:31 -07:00
committed by Tim Abbott
parent da8691d7d7
commit 9c7a3cc0f4
2 changed files with 8 additions and 8 deletions

View File

@@ -821,8 +821,8 @@ exports.needs_subscribe_warning = function (user_id, stream_id) {
};
function insert_video_call_url(url, target_textarea) {
const video_call_link_text = "[" + _("Click to join video call") + "](" + url + ")";
compose_ui.insert_syntax_and_focus(video_call_link_text, target_textarea);
const link_text = i18n.t("Click to join video call");
compose_ui.insert_syntax_and_focus(`[${link_text}](${url})`, target_textarea);
}
exports.render_and_show_preview = function (preview_spinner, preview_content_box, content) {