Discovery
Scan before you model
Do not guess the content model first. Scan source files, inspect candidate strings, and group content by how the product will edit and translate it.
- Candidate mode
- Graph mode
- Source tracking
A migration path for extracting AI-generated UI copy, labels, empty states, and page text from source files into structured Contentrain content.
Audience
Developers cleaning up AI-built apps, agencies modernizing client sites, and teams preparing for localization.
Outcome
Hardcoded strings become structured, reviewable, localizable content without a risky rewrite.
Operating model
Discovery
Do not guess the content model first. Scan source files, inspect candidate strings, and group content by how the product will edit and translate it.
Extraction
Normalize separates extraction from reuse. Approved strings become content entries first, then source patches follow after review.
Reuse
After content is ready, replace hardcoded strings with generated SDK access. This makes future edits content operations instead of source changes.
Implementation steps
Estimate the amount and location of hardcoded strings.
contentrain scan --mode summaryChoose strings that are product content, not implementation details.
Save entries into dictionaries, pages, or collections through Contentrain.
Regenerate the query client after content changes.
contentrain generatePatch source files only after the content shape is validated.
Checklist
No. Extract product-facing text that humans will edit, translate, review, or reuse.
It makes the migration reviewable and avoids changing content and source code in one opaque step.
Yes. Once strings are structured content, locale parity and translation review become normal content workflows.
Start local. Scale to Studio.
Developers can start with the MIT packages. Teams can move into Studio when review, roles, delivery, and licensing matter.