Skip to main content
Integrate Entri into your GitHub Actions pipeline to automatically push new source strings and pull translations on every relevant commit. The nt3 CLI supports non-interactive authentication and machine-readable JSON output designed for CI environments.

Prerequisites

  • An Entri API token (generate one in Settings → API Tokens)
  • A .nt3.yml config file committed to your repository
  • The nt3 CLI installed globally in your workflow

Store your API token

Add your Entri API token as a repository secret:
  1. Go to your GitHub repository → Settings → Secrets and variables → Actions
  2. Click New repository secret
  3. Name it NT3_TOKEN and paste your API token

Basic workflow: push on source change

This workflow runs whenever your source locale file changes. It pushes updated strings to Entri so translators and AI can act on them immediately.

Full sync workflow: push and pull

For projects that want to keep translated files up to date in the repository, use a full push-pull cycle and commit the results back.
The git diff --staged --quiet || git commit pattern only creates a commit when there are actual changes, preventing empty commits when translations are already up to date.

Scheduled AI translation

Run AI translation on a schedule to automatically translate new strings overnight.

CLI flags reference

Exit codes

The CLI exits with 0 on success and a non-zero code on failure, so any step failure automatically fails the workflow job. Use --json to capture structured output for downstream steps or notifications.

Multiple file patterns

If your .nt3.yml defines multiple file patterns (for example, separate namespace files), push and pull handle all patterns automatically — no extra configuration is needed in the workflow.