transloom init
Run this once inside your project before anything else.- Asks for your API key
- Asks for target languages
- Asks for output directory
- Creates
.transloom.jsonin project root
transloom scan
The main command. Scans your project, translates strings, and sets everything up.transloom validate
Check that everything is correctly set up before running a scan.transloom status
Shows your account info, usage stats, and current project config.transloom uninstall
Removes everything Transloom added to your project.- Installed i18n packages (next-intl or i18next)
- Generated files (i18n/request.ts, middleware.ts, LanguageSelector.tsx)
- Translation locale files (public/locales/)
.transloom.jsonconfig
What the extractor catches
| Type | Example |
|---|---|
| JSX text | <button>Sign in</button> |
| Attributes | placeholder="Enter email" |
| Toast/alert calls | toast.success("Saved!") |
- URLs and paths
- Hex colors (#fff)
- CSS class names
- Numbers and operators
- camelCase identifiers
- Single-character strings
- Code fragments