All articles
8 min read

The Translatize GitHub App: Translation Branches and a Check on Every Pull Request

Each pull request that changes source strings gets its own translation branch, AI drafts, a check on GitHub and a merge that keeps other edits.

GitHubBranchingWorkflow

Pull request #482 adds an express checkout button. The code review takes a morning: two comments about a loading state and a missing test, approved before lunch. The diff to locales/en.json is three lines – a new checkout.express.title, a new checkout.express.hint and a reworded checkout.cta – and nobody comments on it, because there is nothing to say about English copy that product already signed off on.

The German, French and Latvian files don't change at all. That's the part nobody reviews.

What happens next depends on the team, and it is rarely good. In one version the pull request merges, the release goes out, and the German checkout shows an English button until a customer reports it. In another, a developer copies the three strings into the translation tool by hand, pings a translator, and a week later pastes the results back into de.json – over a fix someone else made to that file in the meantime, which is now gone. In a third, a CI step fails the build when keys are missing. It catches the problem and fixes nothing: the pull request sits red until someone does the copy-paste anyway.

All three come from the same gap. Code review happens on the pull request, and translation happens somewhere else, on a schedule nobody controls. The Translatize GitHub App closes that gap: each pull request that changes strings gets its own translation branch, and a check that sits next to your tests.

What happens when you push

Once a repository is linked, every pull request that adds or changes source strings goes through the same steps. For #482:

Pull request #482, end to end

  1. Open the pull requestYou
    locales/en.json: 2 keys added, 1 changed
  2. Create the branch pr-482 from mainTranslatize

    Only the new and changed source strings are written to it.

  3. Translate the three keysTranslatize

    AI translation into every other project language, when it is switched on.

  4. Run the quality checksTranslatize

    Placeholders, ICU syntax, length limits, glossary terms and the rest.

  5. Post the Translatize checkTranslatize
    3 changed keys – all translated
  6. Commit the translationsYou
    Sync translations

    One commit by the app on the pull request branch.

  7. Merge on GitHubYou

    pr-482 is merged into main in Translatize, then deleted.

The comparison is against the commit the pull request branched off, so strings that landed on main since then aren't counted as #482's.

The AI translation is the same one you would start in the app, so the project's glossary, style guide, key descriptions and translation memory are used just as they are there. It translates only what changed since the last push it processed. Push a fix to a unit test and nothing is translated or billed. Reword checkout.cta once more and that one key gets fresh translations on pr-482, while main keeps its current ones until the merge.

Translators don't have to wait for the merge either. pr-482 is an ordinary Translatize branch, so a translator can open it, tidy up the AI's German, and the check on GitHub updates on its own. In the branch list it carries a PR #482 badge that links back to the pull request.

Setting it up

An admin or owner of the Translatize project does this once, in the app:

  1. Open Project Settings → GitHub and click Install the GitHub App. GitHub opens in a new tab.
  2. Choose the account or organization, and the repositories the app may access.
  3. Back in Translatize, pick the repository and the base branch – usually main – and click Link repository.

Linking needs write or admin access to the repository for your own GitHub account, which GitHub confirms during the install. Then commit one file to the root of the repository. The GitHub tab shows it with your project id already filled in:

{
  "projectId": "your-project-id",
  "format": "json-nested",
  "files": "locales/{lang}.json",
  "github": {
    "autoTranslate": true,
    "commitTranslations": "on-request",
    "requireComplete": false,
    "syncDefaultBranch": true
  }
}

If you already use the CLI, this is the same translatize.config.json it reads; the CLI ignores the github block. There is no workflow file to write and no API token to keep in your repository secrets. Every key in the github block is optional and overrides the matching setting in the GitHub tab, so the repository can carry its own rules, changed through a pull request like any other file.

The check is where the conversation happens

The check is called Translatize, and its title says where things stand: Translating 3 changed keys while the AI works, 3 changed keys – all translated when it's done, 3 changed keys – 2 translations missing when it isn't. The summary underneath has a small table of translated and missing values per language, the QA errors and warnings, and a link that opens pr-482 in Translatize.

Two settings decide whether the check can fail:

  • Fail the check while translations are missing (requireComplete) turns any missing value for a changed key into a failure, titled 2 translations missing. Teams that never want to ship a half-translated screen switch it on.
  • The project's merge gate (Project Settings → Quality checks), set to Block, fails the check when QA errors would stop the merge – a dropped {count} placeholder, a broken ICU plural, a German label over its character limit.

Make Translatize a required status check in your branch protection rules and the merge button stays disabled while the check fails.

Pull requests from forks get a branch and a check too, but they are never AI-translated – anyone can open one, and it would spend your project's AI characters – and the app never commits to a fork. The check says so; translate those strings in Translatize.

Getting the translations into the branch

By default the check offers a Sync translations button once translation has finished. Click it and the app makes one commit on the pull request's branch, chore(i18n): sync translations from Translatize, with one file per target language, written exactly the way translatize pull writes them: keys sorted, two-space indent, a trailing newline. Files that wouldn't change are left alone, and the app's own commit doesn't set off another round.

There are two other modes. Automatically commits after every translation run that completes, which suits teams happy to review AI drafts in the pull request itself. Never keeps translations in Translatize and leaves delivery to your own translatize pull step or the GitHub Action.

One thing to know: target-language files are written from Translatize. If someone edits de.json by hand in the pull request, the next sync replaces it. That is on purpose: with one copy of the German text, there is no second copy to drift from it.

Merging without clobbering

This is where copy-paste workflows go wrong, and the reason the app works with branches at all.

When #482 merges on GitHub, pr-482 is merged into main in Translatize. Only what the pull request's branch added or changed is applied, language by language. Everything else on main stays as it is: if a translator fixed a German typo there yesterday, in a string #482 never touched, the fix survives the merge. If the AI translation is still running when you click merge, the app waits for it, so the merge includes its output.

Sometimes both sides really did edit the same key. Say a translator reworded the French checkout.cta on main while #482 was open, and #482 changed it too. The pull request's value wins, and the check switches to Translations merged – recheck 1 key with the key listed, so the overwrite is never silent and someone can decide whether it was right.

If the merge gate is on Block and the branch still has QA errors, nothing is merged. The branch is kept, the check fails with Translations not merged – QA errors, and the project's admins and owners get a notification in the app. A pull request closed without merging just has its branch deleted.

Keys the pull request removed from en.json are not deleted in Translatize; the check lists them, so you remove them on purpose. For the longer story of why per-branch merging beats a shared file, translation branching explained walks through the merge strategies.

What the app never touches

It never runs, builds or installs anything from your repository. It reads translatize.config.json and the locale files its files pattern names, as JSON, and nothing else. It commits only to the branch of an open pull request, and only in a mode that commits. It never deletes keys from your base branch, and the only branches it deletes are ones it created.

One default setting does write outside pull requests: Sync pushes to the default branch. When source strings reach your default branch without a pull request – a hotfix pushed straight to main, say – the new and changed source strings are written to the base branch in Translatize. Only the source language, and nothing is translated automatically. Switch it off if you want everything to go through pull requests.

What it costs

The GitHub App is part of the Professional plan at $49 a month and the Agency plan at $199 a month, and what counts is the plan of the account the project is billed to. Professional includes 2,000,000 AI translation characters a month and Agency 10,000,000. Both have unlimited branches, so a branch per pull request never hits a limit. By default, a string with an exact match in the project's translation memory is filled from it before the AI runs, and isn't billed. A push that doesn't change source strings costs nothing at all.

On Free and Starter you can build a similar loop yourself with the CLI or the GitHub Action and an API token in a workflow. The app is for teams that would rather not maintain that workflow.

If the plan is downgraded, the connection pauses instead of breaking. Open pull requests show GitHub sync requires the Professional plan on the check, and after an upgrade it picks up on its own, including the translations of pull requests merged in the meantime.

Next steps

If coding agents write some of your strings, letting AI coding agents manage your translations with MCP covers their side. Every setting, check title and error message is in the GitHub App docs. To try it, link a repository and open a pull request that adds a single string.

Keep reading