@lovalingo/lovalingo 0.1.1 → 0.1.2
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 +11 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,16 @@ It does **not** generate translations in the browser.
|
|
|
14
14
|
|
|
15
15
|
All artifacts are produced server-side by the pipeline (render → audit → deterministic translate → optional fix loop).
|
|
16
16
|
|
|
17
|
+
## Marker engine (v0.1+)
|
|
18
|
+
|
|
19
|
+
The runtime now marks translatable text nodes deterministically and exposes marker stats to the pipeline.
|
|
20
|
+
|
|
21
|
+
- The pipeline waits for `window.__lovalingoMarkersReady` before capturing HTML.
|
|
22
|
+
- Coverage is enforced server-side (jobs fail if marker coverage is below the threshold).
|
|
23
|
+
- This is a breaking change: older runtimes will be rejected by the pipeline.
|
|
24
|
+
|
|
25
|
+
Debug (runtime logs): set `window.__lovalingoDebug = true` before initializing `LovalingoProvider`.
|
|
26
|
+
|
|
17
27
|
## Installation
|
|
18
28
|
|
|
19
29
|
```bash
|
|
@@ -163,6 +173,7 @@ function MyComponent() {
|
|
|
163
173
|
- ✅ Zero-flash translations (rendered before browser paint)
|
|
164
174
|
- ✅ Automatic route change detection
|
|
165
175
|
- ✅ MutationObserver for dynamic content
|
|
176
|
+
- ✅ Deterministic marker engine + pipeline coverage gate (v0.1+)
|
|
166
177
|
- ✅ SEO: automatic `canonical` + `hreflang` (can be disabled via `seo={false}`)
|
|
167
178
|
- ✅ Customizable language switcher
|
|
168
179
|
- ✅ TypeScript support
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.2";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.1.
|
|
1
|
+
export const VERSION = "0.1.2";
|
package/package.json
CHANGED