@vocoder/cli 0.1.20 → 0.1.22

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 CHANGED
@@ -11,7 +11,7 @@ npm install -g @vocoder/cli
11
11
  Or use without installing:
12
12
 
13
13
  ```bash
14
- npx vocoder <command>
14
+ npx @vocoder/cli <command>
15
15
  ```
16
16
 
17
17
  ## Commands
@@ -56,14 +56,19 @@ The CLI opens the Vocoder GitHub App installation page. Authorizing the App crea
56
56
 
57
57
  ◒ Creating project...
58
58
 
59
- Step 1: Add the plugin to vite.config.ts
60
- ◆ Step 2: Wrap your app with VocoderProvider
61
- ◆ Step 3: Mark strings for translation with <T>
59
+ Finish setup in your code
62
60
 
63
- Use Vocoder with Claude Code
64
- claude mcp add --scope project --transport stdio \
65
- │ --env VOCODER_API_KEY=vc_xxxx \
66
- │ vocoder -- npx -y @vocoder/mcp
61
+ vite.config.ts — register the build plugin so Vocoder can extract your strings
62
+ your root layout or App component — wrap your app so translations load at runtime
63
+ ◆ wrap translatable text — mark strings for extraction — Vocoder picks these up on push
64
+
65
+ ✓ Push to main to trigger your first translation run.
66
+
67
+ ◆ Your API Key
68
+ │ ┌─────────────────────────────────────────┐
69
+ │ │ VOCODER_API_KEY=vcp_xxxx │
70
+ │ └─────────────────────────────────────────┘
71
+ ✓ Saved to .env
67
72
 
68
73
  ◇ You're all set.
69
74
  ```
@@ -121,10 +126,14 @@ Reads `VOCODER_API_KEY` from environment or `.env`. Detects `<T>` and `t()` usag
121
126
 
122
127
  | Flag | Description |
123
128
  |---|---|
129
+ | `--include <glob>` | Glob pattern for files to scan (repeatable). Default: `**/*.{tsx,jsx,ts,js}` |
130
+ | `--exclude <glob>` | Glob pattern to skip (repeatable). Merged with built-in excludes |
124
131
  | `--locale <code>` | Sync only this target locale |
125
132
  | `--dry-run` | Show what would be synced without submitting |
126
133
  | `--verbose` | Show extraction and sync details |
127
134
 
135
+ Patterns can also be set via env vars: `VOCODER_INCLUDE_PATTERN` and `VOCODER_EXCLUDE_PATTERN` (comma-separated).
136
+
128
137
  ---
129
138
 
130
139
  ### `vocoder logout`