prismy generate when Prismy is integrated with GitHub or GitLab. Prismy syncs your translation files and triggers translations via PR comments; generate lets you create translations locally during development.
When to use
- Prismy is connected to your GitHub or GitLab repo
- You want to generate translations locally before committing
- You’re on a feature branch and want to preview translations
Using Prismy Hosted without native Git? Use prismy push & pull instead.
Installation & auth
Basic usage
- Detect your repo from git remotes
- Compare the current branch with the main branch
- Find new translation keys in changed files
- Generate translations for all configured languages
- Update your local translation files
Options
| Option | Short | Description |
|---|---|---|
--base-branch | -b | Base branch to compare against (default: main) |
--repo-name | -r | Repository name (when git remote detection fails) |
Typical workflow
Integration with GitHub/GitLab
- Development: Use
prismy generatelocally to preview translations. - Pull requests: Prismy detects missing translations and can comment on PRs.
- CI: Prismy syncs files; translations can be triggered via PR comments. No manual push/pull of files.