Wrap hardcoded JSX text
verbaly_wrapScans JSX/TSX files for hardcoded user-visible text and wraps it in t tagged templates so the compiler can extract it. Reports changes by default; flags text that needs manual handling.
Instructions
Find hardcoded user-visible text in JSX/TSX files and wrap it in a t tagged template so the compiler can extract it (what verbaly wrap does). This is how an existing codebase is onboarded. Reports only unless write is set. Text it cannot wrap safely (a sentence split across markup, an expression rendering JSX) is listed as needing a human and never rewritten. A file that does not bind t is never written either, because the rewrite would not compile: those come back in blocked, with whether the file is a client component, so you can add the binding and run again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Project root holding verbaly.config (defaults to the server working directory) | |
| write | No | Apply the rewrites instead of only reporting |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | JSX/TSX files scanned | |
| write | Yes | ||
| blocked | Yes | ||
| changed | Yes | Files the rewrite touched, or would touch | |
| skipped | Yes | ||
| wrapped | Yes |