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.

formatjs: Use idInterpolationPattern: "[content]".

Anders Kaseorgd4f6abe8277c
diff --git a/package.json b/package.json
index a1b511f52fe..c8bb7a84b0a 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,7 @@
"altcha": "^2.0.3",
"autosize": "^5.0.2",
"babel-loader": "^10.0.0",
- "babel-plugin-formatjs": "^13.0.1",
+ "babel-plugin-formatjs": "^13.0.7",
"babel-plugin-polyfill-corejs3": "^1.0.0",
"blueimp-md5": "^2.10.0",
"browserslist-useragent-regexp": "^4.1.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 53e5a91ee07..54488672994 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -254,7 +254,7 @@ importers:
specifier: ^10.0.0
version: 10.1.1(@babel/[email protected])([email protected])
babel-plugin-formatjs:
- specifier: ^13.0.1
+ specifier: ^13.0.7
version: 13.0.8
babel-plugin-polyfill-corejs3:
specifier: ^1.0.0
diff --git a/web/babel.config.js b/web/babel.config.js
index eee71f75161..f21f917f823 100644
--- a/web/babel.config.js
+++ b/web/babel.config.js
@@ -7,7 +7,7 @@ import _ from "lodash";
/** @type {Parameters<typeof import("babel-plugin-formatjs").default>[1]} */
const formatJsOptions = {
additionalFunctionNames: ["$t", "$t_html"],
- overrideIdFn: (_id, defaultMessage = "") => defaultMessage,
+ idInterpolationPattern: "[content]",
};
/** @type {import("@babel/preset-env").Options} */