@ng-linguo/linguo 0.9.2 → 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 +19 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -99,16 +99,34 @@ zero RxJS plumbing in your components.
|
|
|
99
99
|
|
|
100
100
|
## Install
|
|
101
101
|
|
|
102
|
+
ng-linguo is two packages that do two different jobs at two different times — so
|
|
103
|
+
you install both, once.
|
|
104
|
+
|
|
105
|
+
**The runtime** — what your app imports and ships to the browser:
|
|
106
|
+
|
|
102
107
|
```bash
|
|
103
108
|
npm i @ng-linguo/linguo @ngrx/signals
|
|
104
109
|
```
|
|
105
110
|
|
|
106
111
|
Requires **Angular 18+**. `@ngrx/signals` is a peer dependency — bring your own.
|
|
107
112
|
|
|
113
|
+
**The CLI** (`@ng-linguo/extract`) — the build-time tool that scans your source
|
|
114
|
+
and produces the translation files the runtime loads. It's pure Node with zero
|
|
115
|
+
Angular dependencies, so it installs as a dev dependency and never reaches the
|
|
116
|
+
browser:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
npm i -D @ng-linguo/extract
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Its bin is `linguo-extract`; you run it with `npx linguo-extract …` (or from an
|
|
123
|
+
npm script). Neither package depends on the other, so each stays minimal — the
|
|
124
|
+
runtime renders translations in your app, the CLI generates them in your build.
|
|
125
|
+
|
|
108
126
|
## Getting started
|
|
109
127
|
|
|
110
128
|
The fastest path from an empty Angular app to a translated one. Steps 1–3 get
|
|
111
|
-
the runtime working; step 4
|
|
129
|
+
the runtime working; step 4 uses the CLI to generate the real translation files.
|
|
112
130
|
|
|
113
131
|
### 1. Configure the runtime
|
|
114
132
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-linguo/linguo",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "A modern, signal-first i18n runtime for Angular 18+ — built on SignalStore, with a translator-safe slot syntax, ICU, and tree-shakeable HTTP loading.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "jmwierzbicki",
|