summaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-29 19:03:59 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-29 19:03:59 +0100
commit8fb5e4ef3ae925ebc6622711fb5c8c6147642cbc (patch)
tree9e99137a7b64ea7993a8311a7162336a551be8b2 /package.json
parent2bae7c43764df5678fe2fc2e68be11ae95d85a41 (diff)
parente4d5b8151802517b2943756fc0d09ffa95e2c4e2 (diff)
feat(i18n): replace linguijs with formatjs
Diffstat (limited to 'package.json')
-rw-r--r--package.json11
1 files changed, 9 insertions, 2 deletions
diff --git a/package.json b/package.json
index 3ce04a9..f821652 100644
--- a/package.json
+++ b/package.json
@@ -18,12 +18,14 @@
},
"private": true,
"scripts": {
+ "predev": "npm run i18n:compile",
"dev": "next dev",
+ "prebuild": "npm run i18n:compile",
"build": "next build",
"start": "next start",
"lint": "next lint",
- "i18n:compile": "lingui compile",
- "i18n:extract": "NODE_ENV=development lingui extract",
+ "i18n:compile": "formatjs compile-folder src/i18n lang/",
+ "i18n:extract": "formatjs extract 'src/**/*.ts*' --out-file src/i18n/en.json",
"release": "standard-version -s",
"test": "jest",
"test:coverage": "jest --coverage",
@@ -36,10 +38,12 @@
"@next/mdx": "^12.0.7",
"@types/mdx": "^2.0.1",
"@types/prismjs": "^1.16.6",
+ "babel-plugin-formatjs": "^10.3.17",
"babel-plugin-prismjs": "^2.1.0",
"feed": "^4.2.2",
"graphql": "^16.1.0",
"graphql-request": "^3.7.0",
+ "intl-messageformat": "^9.11.3",
"modern-normalize": "^1.1.0",
"next": "12.0.7",
"next-themes": "^0.0.15",
@@ -47,6 +51,7 @@
"prismjs": "^1.25.0",
"react": "17.0.2",
"react-dom": "17.0.2",
+ "react-intl": "^5.24.4",
"schema-dts": "^1.0.0",
"swr": "^1.1.1"
},
@@ -56,6 +61,7 @@
"@babel/preset-react": "^7.16.0",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
+ "@formatjs/cli": "^4.8.1",
"@lingui/cli": "^3.13.0",
"@lingui/loader": "^3.13.0",
"@lingui/macro": "^3.13.0",
@@ -68,6 +74,7 @@
"eslint": "^8.4.1",
"eslint-config-next": "^12.0.7",
"eslint-config-prettier": "^8.3.0",
+ "eslint-plugin-formatjs": "^2.20.5",
"husky": "^7.0.4",
"jest": "^27.4.4",
"lint-staged": "^12.1.2",