# GitHub setup for developers working with TraduQ CAT

Source: https://traduq.com/tools/cat-tool/docs/github-developer-setup · Updated November 28, 2026

This page is for the developer of a project whose translations a linguist reviews in TraduQ CAT. Send it to them as it is. Everything here is a GitHub setting, and none of it is required. It only makes the review safer and the merge easier. TraduQ CAT never merges a pull request, so who merges is up to these settings. How the linguist's side works is in [Review translations on GitHub](https://traduq.com/tools/cat-tool/docs/github).

## What TraduQ CAT writes

A pull request from TraduQ CAT changes only the translation files that match the pattern confirmed for the project, the review lock (`.traduq/<language>.lock.json` by default) and, if the linguist ticks it, a setup file `.traduq/l10n.json` when the repository has none. It never writes source-language files, workflows or anything under `.github/`. Its branches start with `traduq/`, and the base branch itself is never written to.

The files go from GitHub to the linguist's browser and back. TraduQ's server keeps only ids and counts, never file contents, strings, paths or repository names.

## Install the app

1. Install TraduQ CAT on GitHub with **Only select repositories** and pick this repository. The linguist can send you the install link (**Choose repositories on GitHub**, in TraduQ under **Dashboard** › **Integrations**). It asks for the files and pull requests of the repositories you pick, nothing else.
2. In an organization, if you can't install apps yourself, GitHub lets you send the request to the organization's owners.

## Give the linguist access

- **Read** (organization repositories only) is enough when forks are allowed. The linguist's pull requests then come from their own copy of the repository, and no token they hold can push to yours.
- **Write** lets the linguist work on a branch of your repository. Pair it with the branch protection below, so nothing reaches your main branch without a review.
- **No access.** The linguist sends you a changes file. Apply it in TraduQ CAT (**Apply a changes file**, with your own GitHub connection), or with `git apply --check changes.patch` and then `git apply --3way changes.patch`, and review the diff as you would any pull request.

A private repository in a personal account has no read-only role. Every collaborator there can push. For read-only access, move the repository to an organization (free to create).

## Allow forks

A new organization doesn't allow forks of private repositories. For a linguist with Read access, turn them on in two places:

1. Organization **Settings** › **Member privileges** › **Repository forking** › **Allow forking of private repositories**.
2. Repository **Settings** › **General** › **Allow forking**.

A private fork stays private, and the organization's owners can read it. If you remove the linguist's access, GitHub deletes their private fork.

When a linguist with read access creates the pull request on GitHub, GitHub shows them the box "Allow edits by maintainers", ticked. If they leave it ticked, anyone with push access to your repository can fix a small thing on the linguist's branch instead of sending it back.

## Developer merges

For a linguist with Read access. Protect the main branch in **Settings** › **Branches** › **Add branch protection rule** (or with a ruleset). Turn on **Require a pull request before merging** and **Require approvals**, with at least 1 approval.

Optionally, make every change to the locale files ask a developer for review. Add a `CODEOWNERS` file in `.github/`, the root or `docs/` with the line `/locales/ @your-username`, with your locale folder in place of `/locales/`. A linguist with Read access can't be listed as a code owner, because GitHub needs every code owner to have write access to the repository.

## Linguist reviews their language

For a linguist with Write access, who should approve every change to their language, whoever makes it. Add the line `/locales/es/ @linguist-username` to `CODEOWNERS`, then turn on **Require review from Code Owners** in the branch protection rule. A pull request uses the `CODEOWNERS` file of its base branch, so merge this file first. An author can't approve their own pull request, so someone else approves the linguist's.

## Good to know

- Branch protection and rulesets on a private repository need a paid GitHub plan. On GitHub Free they work only on public repositories.
- "Automatically delete head branches" doesn't reach branches in a linguist's fork unless it is on in the fork. TraduQ CAT offers the linguist to delete its own merged or closed branches the next time they send.
- If a ruleset limits who may create branches, a linguist with write access can't create the `traduq/` branch. TraduQ CAT then offers their own copy or a changes file instead.

[Previous: Review translations on GitHub with TraduQ CAT](https://traduq.com/tools/cat-tool/docs/github)

[Next: Translating in the TraduQ CAT editor](https://traduq.com/tools/cat-tool/docs/editor)
