Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
narrow: Translate browser title for default views.
Lauryn Menard107fdc89550a
diff --git a/static/js/narrow.js b/static/js/narrow.jsindex 8ac961338e1..08c3e920300 100644--- a/static/js/narrow.js+++ b/static/js/narrow.js@@ -11,6 +11,7 @@ import * as condense from "./condense";import {Filter} from "./filter";import * as hash_util from "./hash_util";import * as hashchange from "./hashchange";+import {$t} from "./i18n";import * as message_edit from "./message_edit";import * as message_fetch from "./message_fetch";import * as message_helper from "./message_helper";@@ -990,7 +991,7 @@ function handle_post_narrow_deactivate_processes() {widgetize.set_widgets_for_list();typing_events.render_notifications_for_narrow();message_view_header.initialize();- narrow_title = "All messages";+ narrow_title = $t({defaultMessage: "All messages"});notifications.redraw_title();message_scroll.update_top_of_narrow_notices(message_lists.home);}diff --git a/static/js/recent_topics_ui.js b/static/js/recent_topics_ui.jsindex 15408420c49..36083651738 100644--- a/static/js/recent_topics_ui.js+++ b/static/js/recent_topics_ui.js@@ -757,7 +757,8 @@ export function show() {compose_closed_ui.update_buttons_for_recent_topics();narrow_state.reset_current_filter();- narrow.set_narrow_title("Recent topics");+ const recent_topics_title = $t({defaultMessage: "Recent topics"});+ narrow.set_narrow_title(recent_topics_title);message_view_header.render_title_area();narrow.handle_middle_pane_transition();