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 uses of i18n.t on computed strings.

Anders Kaseorg2293b01a752b
diff --git a/static/js/rendered_markdown.js b/static/js/rendered_markdown.js
index 028cabc6540..7dc942aff28 100644
--- a/static/js/rendered_markdown.js
+++ b/static/js/rendered_markdown.js
@@ -214,7 +214,9 @@ export const update_elements = (content) => {
const view_in_playground_button = $(view_code_in_playground());
$pre.prepend(view_in_playground_button);
if (playground_info.length === 1) {
- title = i18n.t(`View in ${playground_info[0].name}`);
+ title = i18n.t("View in __playground_name__", {
+ playground_name: playground_info[0].name,
+ });
} else {
view_in_playground_button.attr("aria-haspopup", "true");
}
diff --git a/static/js/ui.js b/static/js/ui.js
index 4149a557080..d38ddf4d395 100644
--- a/static/js/ui.js
+++ b/static/js/ui.js
@@ -107,8 +107,7 @@ export function show_failed_message_success(message_id) {
export function get_hotkey_deprecation_notice(originalHotkey, replacementHotkey) {
return i18n.t(
- 'We\'ve replaced the "__originalHotkey__" hotkey with "__replacementHotkey__" ' +
- "to make this common shortcut easier to trigger.",
+ 'We\'ve replaced the "__originalHotkey__" hotkey with "__replacementHotkey__" to make this common shortcut easier to trigger.',
{originalHotkey, replacementHotkey},
);
}