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 @typescript-eslint/unbound-method.

Anders Kaseorgf8c2e7c7b079
diff --git a/static/js/i18n.ts b/static/js/i18n.ts
index 70b57a95e8c..01e6a5c25e5 100644
--- a/static/js/i18n.ts
+++ b/static/js/i18n.ts
@@ -25,7 +25,7 @@ export const intl = createIntl(
cache,
);
-export const $t = intl.formatMessage;
+export const $t = intl.formatMessage.bind(intl);
export const default_html_elements = Object.fromEntries(
["b", "code", "em", "i", "kbd", "p", "strong"].map((tag) => [