Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion i18n.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.10",
"version": "1.11",
"locale": {
"source": "en",
"targets": [
Expand Down Expand Up @@ -27,5 +27,14 @@
"include": ["readme/[locale].md"]
}
},
"review": {
"attribute": "data-lingo-id",
"outputDir": ".lingo/context",
"routes": [],
"compiler": {
"sourceRoot": "src",
"lingoDir": "lingo"
}
},
"$schema": "https://lingo.dev/schema/i18n.json"
}
16 changes: 16 additions & 0 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,22 @@ It fingerprints every string, caches results, and only re-translates what change

---

### 📸 Context Snapshot Manifest

Feed your translators with real UI context. Once you've run the compiler, capture a manifest that links every localized JSX scope to its DOM marker:

```bash
npx lingo.dev@latest review capture
```

The command reads `meta.json`/`dictionary.js`, outputs `.lingo/context/context-manifest.json`, and reminds you to enable `exposeContextAttribute` in your build config so `data-lingo-id` markers show up in the rendered app.

Each manifest entry includes the compiler-provided `marker.attribute`/`marker.value` pair alongside source and translated strings, making it easy to target the exact DOM nodes when capturing context.

Add per-route capture rules under the new `review` block in `i18n.json` to drive upcoming screenshot automation.

---

### 🔄 Lingo.dev CI/CD

Ship perfect translations automatically.
Expand Down
Loading