i18n: Fix @typescript-eslint/unbound-method.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-09-22 15:27:09 -07:00 committed by Anders Kaseorg
parent abee9258c6
commit f8c2e7c7b0
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ export const intl = createIntl(
cache, cache,
); );
export const $t = intl.formatMessage; export const $t = intl.formatMessage.bind(intl);
export const default_html_elements = Object.fromEntries( export const default_html_elements = Object.fromEntries(
["b", "code", "em", "i", "kbd", "p", "strong"].map((tag) => [ ["b", "code", "em", "i", "kbd", "p", "strong"].map((tag) => [