i18n: Initialize FormatJS.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-04-09 18:11:59 -07:00
committed by Tim Abbott
parent 6cf398f157
commit 4b4cea90a3
7 changed files with 518 additions and 37 deletions

View File

@@ -1,6 +1,15 @@
"use strict";
module.exports = {
plugins: [
[
"formatjs",
{
additionalFunctionNames: ["$t", "$t_html"],
overrideIdFn: (id, defaultMessage) => defaultMessage,
},
],
],
presets: [
[
"@babel/preset-env",