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: Convert commented JavaScript messages to FormatJS.

Anders Kaseorg768f54c3f9e9
diff --git a/static/js/components.js b/static/js/components.js
index 9ac14ecf69b..fa91a6bcfd7 100644
--- a/static/js/components.js
+++ b/static/js/components.js
@@ -5,7 +5,7 @@ import * as keydown_util from "./keydown_util";
Toggle x = components.toggle({
selected: Integer selected_index,
values: Array<Object> [
- { label: i18n.t("String title") }
+ {label: $t({defaultMessage: "String title"})}
],
callback: function () {
// .. on value change.
diff --git a/static/js/settings_config.js b/static/js/settings_config.js
index 23add8e7b5b..3eeb02ee1b6 100644
--- a/static/js/settings_config.js
+++ b/static/js/settings_config.js
@@ -91,7 +91,7 @@ export const email_address_visibility_values = {
// // Backend support for this configuration is not available yet.
// admins_and_members: {
// code: 2,
- // description: i18n.t("Members and admins"),
+ // description: $t({defaultMessage: "Members and admins"}),
// },
admins_only: {
code: 3,
@@ -176,13 +176,13 @@ export const wildcard_mention_policy_values = {
by_stream_admins_only: {
order: 4,
code: 4,
- // description: i18n.t("Organization and stream admins"),
+ // description: $t({defaultMessage: "Organization and stream admins"}),
description: $t({defaultMessage: "Admins only"}),
},
// by_admins_only: {
// order: 5,
// code: 5,
- // description: i18n.t("Admins only"),
+ // description: $t({defaultMessage: "Admins only"}),
// },
nobody: {
order: 6,