diff options
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 11 |
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", |
