Skip to main content
Let’s bring in your product copy. One command scans your codebase and identifies your current product strings. Run it in your product’s repo to import them; once they’re in, you’ll be able to search, audit, and reuse the text from your live product.

Before you start

You need Node.js 20 or newer (node --version) and a Ditto account (app.dittowords.com).
Scan the folder that holds your product’s user-facing code, usually ./src, ./app, or the repo root on a small project.

Run the scan

Paste this prompt into Claude Code from the root of your repo.
This only needs read access to your codebase. It won’t edit or write to your repo. You’ll be able to review what’s scanned before bringing it into Ditto.
Open the link.

Review and refine

Ditto classifies the strings and shows Your codebase scan has finished! with how many strings and locales it found. Review scan takes you through setting up your content system:
  1. Set up your content system in Ditto. Ditto shows the unique and repeated strings it kept, the developer IDs it found, and your product name and blurb. Mark any strings to leave out or handle differently.
  2. Review proposed content system. The tags Ditto will create, how it will give components names, how it will organize them, the variants and locales it found, and how it will name developer IDs, each with examples. Describe what you’d like to adjust, in plain language, until it looks right.
  3. Create. Ditto creates the library components, variables, and one variant per locale. Home shows Your product copy is now in Ditto! with what was imported, and you can search and reuse what’s live today across your product.

Get a first style guide

We can infer a starter style guide from your strings, or you can import your own. After a scan finishes, Ditto drafts a style guide with three sections: Voice & Tone and Style & Mechanics (rules) and a Word List (terminology). Each rule has a name, a description, and up to three from → to examples taken from your copy. Definitions: Style guides and rules.
  1. In Ditto, open Style guides in the left sidebar. The inferred guide appears as a draft named after your product (or “Content Style Guide” if the name could not be inferred).
  2. Open it. Edit, delete, or add rules, and move rules between sections.
  3. Enable it. Turn on Enabled by default so it applies to every project, or enable it per project from the project’s menu under Style guides.
Agents receive the rules through get_styleguide_rules as soon as the guide is enabled; the PR review bot checks pull requests against them. To add, refine, or retire rules from your editor, see Agent instructions.

Frequently asked questions

What if my repo already has translation files? Scan reads strings.xml, .strings, .stringsdict, .xcstrings, and JSON catalogs, and each locale becomes a variant in Ditto with that locale’s text. Is there a limit? Trial workspaces can classify up to 1,000 strings in total across all of their scans. Paid plans have no cap. If a scan would exceed the remaining budget, the CLI stops before uploading and suggests subdirectories that fit.