@ng-linguo/extract 0.9.1 → 0.9.3
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 +10 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,18 +12,21 @@ pnpm add -D @ng-linguo/extract
|
|
|
12
12
|
|
|
13
13
|
## Quick start
|
|
14
14
|
|
|
15
|
+
The package name is `@ng-linguo/extract`; its bin is `linguo-extract`, so run it
|
|
16
|
+
with `npx` (or from an npm script) once it's a dependency:
|
|
17
|
+
|
|
15
18
|
```bash
|
|
16
19
|
# Create linguo.config.json (interactive in a terminal, or pass flags for CI)
|
|
17
|
-
linguo-extract init --locales en,pl,de
|
|
20
|
+
npx linguo-extract init --locales en,pl,de
|
|
18
21
|
|
|
19
22
|
# Scan source → update <locale>.po catalogs
|
|
20
|
-
linguo-extract extract
|
|
23
|
+
npx linguo-extract extract
|
|
21
24
|
|
|
22
25
|
# Compile <locale>.po → runtime <locale>.json
|
|
23
|
-
linguo-extract compile
|
|
26
|
+
npx linguo-extract compile
|
|
24
27
|
```
|
|
25
28
|
|
|
26
|
-
Run `linguo-extract` with no command in a terminal to open the guided menu,
|
|
29
|
+
Run `npx linguo-extract` with no command in a terminal to open the guided menu,
|
|
27
30
|
which can also create and edit your config (a BIOS-style settings screen where
|
|
28
31
|
each value carries a description).
|
|
29
32
|
|
|
@@ -84,7 +87,7 @@ including inside the interactive menu — whether or not you configure a transla
|
|
|
84
87
|
### Manual — clipboard (no API key, no config)
|
|
85
88
|
|
|
86
89
|
```bash
|
|
87
|
-
linguo-extract copyprompt pl # copies the prompt to your clipboard
|
|
90
|
+
npx linguo-extract copyprompt pl # copies the prompt to your clipboard
|
|
88
91
|
```
|
|
89
92
|
|
|
90
93
|
Paste it into any chat model, then save the reply over `pl.po`. Or use the
|
|
@@ -167,8 +170,8 @@ Then link it and run:
|
|
|
167
170
|
```
|
|
168
171
|
|
|
169
172
|
```bash
|
|
170
|
-
linguo-extract translate --locale pl # one language
|
|
171
|
-
linguo-extract translate --all # every language with missing entries
|
|
173
|
+
npx linguo-extract translate --locale pl # one language
|
|
174
|
+
npx linguo-extract translate --all # every language with missing entries
|
|
172
175
|
```
|
|
173
176
|
|
|
174
177
|
`translate` only touches entries that are still missing, then compiles. The same
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-linguo/extract",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "The ng-linguo extraction CLI — scans Angular source for translatable messages, manages gettext .po catalogs, and compiles them to runtime JSON. Pure Node, zero Angular deps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "jmwierzbicki",
|