i18n: Automatically convert remaining JavaScript messages to FormatJS.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-04-12 21:51:54 -07:00
committed by Tim Abbott
parent 24646907dc
commit 2004a85fb1
61 changed files with 676 additions and 535 deletions

View File

@@ -1,7 +1,7 @@
import $ from "jquery";
import * as color_class from "./color_class";
import {i18n} from "./i18n";
import {$t} from "./i18n";
import * as message_view_header from "./message_view_header";
import * as subs from "./subs";
@@ -122,7 +122,7 @@ export const sidebar_popover_colorpicker_options_full = {
showInput: true,
flat: true,
cancelText: "",
chooseText: i18n.t("Confirm"),
chooseText: $t({defaultMessage: "Confirm"}),
palette: stream_color_palette,
change: picker_do_change_color,
};