nt3 0.1.5 → 0.2.1
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 +25 -1
- package/main.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,10 @@ nt3 init
|
|
|
24
24
|
# 3. Push source strings
|
|
25
25
|
nt3 push
|
|
26
26
|
|
|
27
|
-
# 4.
|
|
27
|
+
# 4. Translate untranslated keys with AI
|
|
28
|
+
nt3 translate --all
|
|
29
|
+
|
|
30
|
+
# 5. Pull translations
|
|
28
31
|
nt3 pull
|
|
29
32
|
```
|
|
30
33
|
|
|
@@ -95,6 +98,27 @@ nt3 pull --json # JSON output for CI/CD
|
|
|
95
98
|
| `-l, --language <lang>` | Pull a specific language only |
|
|
96
99
|
| `--json` | Output results as JSON |
|
|
97
100
|
|
|
101
|
+
### `nt3 translate` (alias: `tr`)
|
|
102
|
+
|
|
103
|
+
Translate untranslated keys using AI. Processes keys in batches with real-time progress streaming.
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
nt3 translate fr # Translate to French
|
|
107
|
+
nt3 translate -l nl # Translate to Dutch (flag form)
|
|
108
|
+
nt3 translate --all # Translate all target languages
|
|
109
|
+
nt3 translate --all --provider anthropic # Use a specific AI provider
|
|
110
|
+
nt3 translate --all --json # JSON output for CI/CD
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
| Flag | Description |
|
|
114
|
+
|------|-------------|
|
|
115
|
+
| `-a, --all` | Translate all target languages |
|
|
116
|
+
| `-l, --language <lang>` | Target language code |
|
|
117
|
+
| `--provider <provider>` | AI provider override (`anthropic` or `openai`) |
|
|
118
|
+
| `--json` | Output results as JSON |
|
|
119
|
+
|
|
120
|
+
The command uses your project's AI settings (tone, style, additional context) configured in Entri. Already-translated keys are skipped. Press `Ctrl+C` to gracefully cancel an in-progress translation.
|
|
121
|
+
|
|
98
122
|
### `nt3 status`
|
|
99
123
|
|
|
100
124
|
Show current authentication and project configuration.
|