react-autolocale 0.1.0 → 0.3.0-beta.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/README.md +248 -16
- package/dist/cli.js +800 -46
- package/dist/config-CYHyGpdX.js +21 -0
- package/dist/config.d.ts +56 -0
- package/dist/config.js +1 -0
- package/dist/index.d.ts +64 -3
- package/dist/index.js +154 -24
- package/dist/project-CGAWETvT.js +1400 -0
- package/dist/{redirect-CKNY4ru5.js → redirect-pDFblLdm.js} +5 -2
- package/dist/suggestion-CkZQqMvZ.js +24 -0
- package/dist/translate-COrJX1KS.d.ts +22 -0
- package/dist/vite.d.ts +12 -3
- package/dist/vite.js +82 -782
- package/package.json +22 -6
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-autolocale",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Wrap your React + Vite app in <AutoScale> and get fully translated static pages (/fr, /es, ...)
|
|
3
|
+
"version": "0.3.0-beta.0",
|
|
4
|
+
"description": "Wrap your React + Vite app in <AutoScale> and get fully translated static pages (/fr, /es, ...). Translations are generated by an explicit CLI step with a local model, OpenAI or Anthropic; builds never translate.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"react",
|
|
@@ -29,25 +29,38 @@
|
|
|
29
29
|
"./vite": {
|
|
30
30
|
"types": "./dist/vite.d.ts",
|
|
31
31
|
"import": "./dist/vite.js"
|
|
32
|
+
},
|
|
33
|
+
"./config": {
|
|
34
|
+
"types": "./dist/config.d.ts",
|
|
35
|
+
"import": "./dist/config.js"
|
|
32
36
|
}
|
|
33
37
|
},
|
|
34
38
|
"scripts": {
|
|
35
39
|
"build": "tsdown",
|
|
36
40
|
"test": "vitest run",
|
|
37
41
|
"typecheck": "tsc -p .",
|
|
38
|
-
"prepublishOnly": "pnpm build && pnpm test"
|
|
42
|
+
"prepublishOnly": "pnpm build && pnpm test",
|
|
43
|
+
"e2e": "node e2e/run.mjs"
|
|
39
44
|
},
|
|
40
45
|
"engines": {
|
|
41
46
|
"node": ">=20"
|
|
42
47
|
},
|
|
43
48
|
"peerDependencies": {
|
|
49
|
+
"@huggingface/transformers": ">=3",
|
|
44
50
|
"react": ">=18",
|
|
45
51
|
"vite": ">=5",
|
|
46
|
-
"
|
|
52
|
+
"openai": ">=6",
|
|
53
|
+
"@anthropic-ai/sdk": ">=0.60"
|
|
47
54
|
},
|
|
48
55
|
"peerDependenciesMeta": {
|
|
49
56
|
"@huggingface/transformers": {
|
|
50
57
|
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"openai": {
|
|
60
|
+
"optional": true
|
|
61
|
+
},
|
|
62
|
+
"@anthropic-ai/sdk": {
|
|
63
|
+
"optional": true
|
|
51
64
|
}
|
|
52
65
|
},
|
|
53
66
|
"dependencies": {
|
|
@@ -58,16 +71,19 @@
|
|
|
58
71
|
"jsdom": "^30.1.2"
|
|
59
72
|
},
|
|
60
73
|
"devDependencies": {
|
|
74
|
+
"@anthropic-ai/sdk": "^0.133.0",
|
|
75
|
+
"@huggingface/transformers": "^4.3.1",
|
|
61
76
|
"@types/jsdom": "^30.0.0",
|
|
62
77
|
"@types/node": "^22.20.5",
|
|
63
78
|
"@types/react": "^19.3.0",
|
|
64
79
|
"@types/react-dom": "^19.3.0",
|
|
80
|
+
"openai": "^7.32.0",
|
|
81
|
+
"playwright-core": "^1.50.0",
|
|
65
82
|
"react": "^19.3.0",
|
|
66
83
|
"react-dom": "^19.3.0",
|
|
67
84
|
"tsdown": "^0.23.0",
|
|
68
85
|
"typescript": "^7.0.2",
|
|
69
86
|
"vite": "^8.3.3",
|
|
70
|
-
"vitest": "^5.0.3"
|
|
71
|
-
"@huggingface/transformers": "^4.3.1"
|
|
87
|
+
"vitest": "^5.0.3"
|
|
72
88
|
}
|
|
73
89
|
}
|