You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add incognito mode for private translations
## New
- Add `--incognito` CLI flag to `translate` and `init` commands
- Add `incognito` config option in `lara.yaml` schema
- Add interactive prompt for incognito mode during `lara-cli init`
- Support incognito across all translate modes (config, --file, --text)
- CLI flag overrides config value when both are set
- Add 8 integration tests covering all incognito scenarios
## Changed
- Bump version from 1.2.0 to 1.3.0
- Export shared mock translate function from test-helpers for call assertions
* refactor: rename --incognito to --no-trace
Align CLI flag and config naming with the @translated/lara SDK's
noTrace option. Commander.js --no-* negation semantics are used:
--no-trace sets trace=false, which maps to noTrace=true.
## Changed
- Rename --incognito CLI flag to --no-trace on translate and init commands
- Rename incognito config field to noTrace in lara.yaml schema
- Update all tests, docs, and messages accordingly
* refactor: remove no-trace interactive prompt
## Changed
- No-trace mode in interactive init is now set only via --no-trace flag, no longer prompted
* docs: improve no-trace mode documentation
## Changed
- Expand translate.md no-trace section with per-invocation and permanent config subsections
- Add noTrace field to config README basic structure example
- Add noTrace to schema relations diagram in structure.md
## New
- Add "Initialize with No-Trace Mode" example to init.md
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Lara Cli automates translation of your i18n files with a single command, preserv
6
6
7
7
Supports multiple file formats including JSON, PO (gettext), TypeScript, Vue I18n single-file components, Markdown and MDX files, Android XML string resource files, Xcode localization files (.strings, .stringsdict, .xcstrings), and plain text (.txt) files. See [Supported Formats](docs/config/formats.md) for details.
This sets `noTrace: true` in `lara.yaml`, which prevents the translation API from storing or logging your content server-side. All subsequent `lara-cli translate` runs will automatically use no-trace mode. You can also pass `--no-trace` directly to the translate command for one-off usage.
Copy file name to clipboardExpand all lines: docs/commands/translate.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ lara-cli translate [options]
15
15
|`-t, --target <locales>`| Comma-separated list of target locales to translate to |
16
16
|`-p, --paths <paths>`| Comma-separated list of specific file paths to translate (overrides config) |
17
17
|`-f, --force`| Force retranslation of all content, even if unchanged |
18
+
|`--no-trace`| Prevent server-side storage of translated content |
18
19
|`-h, --help`| Display help information |
19
20
20
21
## Examples
@@ -129,6 +130,38 @@ Use `--force` when you need to:
129
130
- Fix translation errors by regenerating all translations
130
131
- Reset translations after configuration changes
131
132
133
+
## No-Trace Mode
134
+
135
+
Use `--no-trace` to prevent the translation API from storing or logging your content server-side. This is useful when translating sensitive or confidential content.
136
+
137
+
### Per-Invocation
138
+
139
+
Pass `--no-trace` to any translate command:
140
+
141
+
```bash
142
+
lara-cli translate --no-trace
143
+
lara-cli translate --text "Sensitive data" --source en --target fr --no-trace
144
+
lara-cli translate --file "confidential.json" --source en --target de --no-trace
145
+
```
146
+
147
+
### Permanent Configuration
148
+
149
+
To enable no-trace for all translations in a project, either:
150
+
151
+
1. Initialize with `--no-trace`:
152
+
153
+
```bash
154
+
lara-cli init --no-trace
155
+
```
156
+
157
+
2. Or add it manually to `lara.yaml`:
158
+
159
+
```yaml
160
+
noTrace: true
161
+
```
162
+
163
+
When set in the config, all `lara-cli translate` runs will use no-trace mode automatically. The `--no-trace` CLI flag always takes precedence over the config value.
164
+
132
165
## Direct Translation
133
166
134
167
In addition to config-based translation, the `translate` command supports direct file and text translation. This mode is designed for CI/CD pipelines, scripting, and one-off translations — no `lara.yaml` configuration file is needed.
@@ -175,6 +208,7 @@ Only [supported file formats](../config/formats.md) are accepted (JSON, PO, XML,
0 commit comments