Pull requests

Workflow settings

Configure how TolkBot creates and manages translation pull requests.

These settings are under Settings → Workflow in the project's sidebar. Each project has its own; they are not inherited from the organization. Each heading below is the label the dashboard uses, followed by the setting's name.


Pull request target

prTargetBranch. The branch translation PRs are opened against.

Default: the repository's default branch.

Use this when you want translations to target a specific branch (e.g., develop) even though detection happens on a different branch.


Remove translations when a key is removed from the source

When a push removes a key from the base language file, TolkBot removes that key's translations in the language's pull request.

Default: on.

A translation a person wrote, edited, locked or is drafting is kept, and the pull request names it. A push that removes at least 10 keys and more than 40% of a file usually means keys moved or were renamed, so TolkBot removes nothing from that file and lists the keys in the pull request instead. See Removed and renamed keys.

With the switch off, the translations of removed keys stay in your files until you remove them.


Auto-create PRs

autoCreatePR. Enable or disable automatic PR creation.

Default: true for a new project. A project created before this became the default keeps the value it had, which is false unless someone changed it.

ValueBehavior
trueTolkBot creates/updates a translation PR per set-up language on push
falseNo automatic PRs (start translations from the dashboard or use the CLI instead)

Translation scope

translationScope. Control which keys get translated on each push.

Default: new-keys-only.

ValueDashboard labelBehavior
new-keys-onlyNew keys onlyTranslate the keys the triggering commit added or changed
all-missingAll missing keysTranslate every key missing from the target locale on each push

With new-keys-only, a commit that touched no key needing translation falls back to every missing key, so a push never leaves work behind because the commit diff said nothing useful. To fill in keys that were missing before you connected the project, either switch to all-missing or use Translate missing on the project's Translations page.

Either way, a key whose source text changed is translated again when TolkBot wrote the current translation and nobody has touched it since.


Branch pattern

branchPattern. Customize the branch name for translation PRs.

Default: tolkbot/{{projectName}}-i18n-{{lng}}

Available placeholders

PlaceholderDescription
{{lng}}Target language code (e.g., de, fr)
{{projectName}}Project slug
{{baseLanguage}}Source language code

Example

tolkbot/i18n-{{baseLanguage}}-{{lng}}

Creates branches like tolkbot/i18n-en-de. A pattern that doesn't start with tolkbot/ gets it added.

Changing the pattern, or renaming the project, doesn't move an open translation PR. TolkBot keeps committing to that PR's branch, and the new name applies to the next PR.


Base branches filter

baseBranches. Filter which branches trigger translation PRs. A regular expression that must match the whole branch name.

Default: the repository's default branch only.

Examples

PatternMatches
mainOnly the main branch
main|developmain or develop
release/.*Any branch starting with release/

Ignore users

ignoreUsers. Skip translation for pushes made by specific GitHub accounts.

Default: none.

Example

["dependabot[bot]", "renovate[bot]", "release-bot"]

TolkBot compares each entry with the login of the account that pushed, exactly as GitHub reports it. Bots and GitHub Apps push as name[bot], so dependabot on its own matches nothing. A pull request merged on GitHub is pushed by the person who merged it, not by its author, so ignoring a bot skips only the pushes the bot makes itself.


Minimum keys threshold

minKeysThreshold. Minimum number of keys a push must need translated before TolkBot translates and updates the PR.

Default: 1.

Set this to avoid updating PRs for single-key changes. A push below the threshold translates nothing. With all-missing the skipped keys are counted again on the next push; with new-keys-only the next push counts only its own keys, so use Translate missing to pick up what was skipped.


Create as draft

createAsDraft. Create translation PRs in draft state.

ValueBehavior
truePRs are created as drafts
falsePRs are created as ready for review (default)

PR labels

prLabels. Labels to add to translation PRs. TolkBot adds them when it opens a PR, not when it updates one.

Default: none.

Example

["translations", "automated", "needs-review"]
Previous
Removed and renamed keys