@orderly.network/i18n 2.0.8-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@orderly.network/i18n",
3
+ "version": "2.0.8-alpha.0",
4
+ "description": "Internationalization for orderly sdk",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "bin": {
9
+ "i18n": "bin/cli.js"
10
+ },
11
+ "keywords": [],
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "dependencies": {
19
+ "i18next": "^24.2.2",
20
+ "i18next-browser-languagedetector": "^8.0.4",
21
+ "react-i18next": "^15.4.1"
22
+ },
23
+ "devDependencies": {
24
+ "@babel/preset-env": "^7.22.9",
25
+ "@babel/preset-react": "^7.22.5",
26
+ "@babel/preset-typescript": "^7.22.5",
27
+ "@types/react": "^18.3.2",
28
+ "@types/react-dom": "^18.3.0",
29
+ "@types/fs-extra": "^11.0.4",
30
+ "@types/jest": "^29.5.3",
31
+ "fs-extra": "^11.2.0",
32
+ "babel-jest": "^29.6.1",
33
+ "jest": "^29.6.1",
34
+ "jest-environment-jsdom": "^29.7.0",
35
+ "react": "^18.2.0",
36
+ "react-dom": "^18.2.0",
37
+ "tsup": "^7.1.0",
38
+ "typescript": "^5.1.6",
39
+ "yargs": "^17.7.2",
40
+ "tsconfig": "0.3.23-alpha.0"
41
+ },
42
+ "peerDependencies": {
43
+ "react": ">=18",
44
+ "react-dom": ">=18"
45
+ },
46
+ "scripts": {
47
+ "test": "jest",
48
+ "build": "tsup && pnpm generateCsv",
49
+ "cli": "node ./bin/cli.js",
50
+ "csv2json": "pnpm cli csv2json ./dist/locale.csv ./dist/locale",
51
+ "json2csv": "pnpm cli json2csv ./dist/locale/en.json,./dist/locale/zh.json ./dist/locale.csv",
52
+ "diffcsv": "pnpm cli diffcsv ./dist/locale1.csv ./dist/locale2.csv",
53
+ "generateCsv": "pnpm cli generateCsv ./dist/locale.csv",
54
+ "fillJson": "pnpm cli fillJson ./src/locale/zh.json ./dist/locale/zh.json"
55
+ }
56
+ }