From 537697a6e9757f118d09d9e76362ba1ff617e2c6 Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Mon, 13 Sep 2021 14:45:46 +0200 Subject: chore: upgrade intl dependencies (#1920) --- package.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index f4ee15e34..f95116218 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,9 @@ "test": "jest", "test:watch": "jest --watch", "lint": "eslint \"{src,scripts,packages,uidev}/**/*.{js,jsx,ts,tsx}\" --quiet --fix", - "manage-translations": "node ./src/i18n/manage-translations.js", + "extract": "formatjs extract 'src/**/*.{js,ts}' --out-file temp.json --flatten --id-interpolation-pattern '[sha512:contenthash:base64:6]'", + "compile": "formatjs compile 'temp.json' --out-file src/i18n/locales/en-US.json", + "manage-translations": "npm run extract && npm run compile && rimraf temp.json", "prebuild": "preval-build-info-cli && gulp build", "build": "electron-builder", "commit": "git-cz", @@ -114,7 +116,7 @@ "react-dom": "16.14.0", "react-dropzone": "11.3.4", "react-electron-web-view": "2.0.1", - "react-intl": "2.7.2", + "react-intl": "5.20.10", "react-jss": "8.6.1", "react-loader": "2.4.7", "react-modal": "3.14.3", @@ -146,6 +148,7 @@ "@babel/register": "7.15.3", "@commitlint/cli": "13.1.0", "@commitlint/config-conventional": "13.1.0", + "@formatjs/cli": "4.2.33", "@tsconfig/node14": "1.0.1", "@types/color": "3.0.2", "@types/du": "1.0.1", @@ -163,7 +166,7 @@ "@typescript-eslint/eslint-plugin": "4.30.0", "@typescript-eslint/parser": "4.29.1", "all-contributors-cli": "6.20.0", - "babel-plugin-react-intl": "3.5.1", + "babel-plugin-formatjs": "10.3.8", "commitizen": "4.2.4", "concurrently": "6.2.1", "conventional-changelog-cli": "2.1.1", @@ -205,7 +208,7 @@ "node-abi": "2.30.0", "prettier": "2.3.2", "preval-build-info": "1.0.3", - "react-intl-translations-manager": "5.0.3", + "rimraf": "3.0.2", "sass": "1.37.5", "simple-git": "2.45.0", "terser": "4.8.0", -- cgit v1.2.3-54-g00ecf