Skip to main content
Use 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

Set your API key (from Prismy Settings):

Basic usage

Or simply:
The CLI will:
  • 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
No manual config is required; the CLI uses your Prismy repository settings (main branch, file paths, languages).

Options

Examples:

Typical workflow

Integration with GitHub/GitLab

  1. Development: Use prismy generate locally to preview translations.
  2. Pull requests: Prismy detects missing translations and can comment on PRs.
  3. CI: Prismy syncs files; translations can be triggered via PR comments. No manual push/pull of files.
Reference: prismy-cli docs — PRISMY_GENERATE