> ## Documentation Index
> Fetch the complete documentation index at: https://help.os.translated.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub and GitLab connector

> What the repository connector does and what you need before you start

For engineering teams and localisation managers working with source-controlled content.

## What it does

The connector watches content on a branch of your repository, sends new and changed content to TranslationOS, tracks every translation, and commits finished translations directly to a delivery branch.

It never opens pull or merge requests. Translations are committed.

Since September 2026, customers on GitHub and GitHub Enterprise can configure and monitor their own projects from the Content Repository page inside the TranslationOS dashboard. GitLab setup is staff-assisted and covers GitLab.com only.

## Two ways content is handled

**Resources.** Structured files broken into individual translatable strings, such as JSON or Android XML. Each string is tracked separately, so only what changed is sent.

**Documents.** Files translated whole, such as Markdown or HTML. A change anywhere means the file goes again.

Which applies is set per fileset.

## Projects and filesets

**A project** is tied to one branch of one repository. It defines the observed branch, the delivery branch, which can be the same, the fetch and delivery methods, source and target languages, and the TranslationOS metadata: service type, instructions, invoicing.

**A fileset** defines which files a project observes: source paths and names with wildcards, target naming with placeholders, whether files are resources or documents, which parser or content type applies, how missing and outdated translations are handled at delivery, and any URL pre-processing.

> [!WARNING]
>
> Two constraints with no automatic enforcement: multiple projects on one repository must not overlap, and each file must belong to only one fileset. Nothing checks this for you, and overlapping configurations produce duplicate requests and unpredictable delivery.

## Fetch and delivery methods

| Method | Behaviour |
| - | - |
| Fetch on change | Triggered by commits to source files |
| Delivery on completion | Files are uploaded once no translations are pending |
| Periodic | A scheduler runs fetches or deliveries at set intervals |
| Manual | Triggered per project from the interface or the API |

## Initial sync

When a project is created, the connector compares the observed branch with existing target files to find what is missing. It does not ingest anything at this stage.

* For string resources, keys with matching existing translations are imported. Keys without one are marked missing.
* For documents, all are marked missing, since existing targets cannot be verified as genuine translations.

## Limits

* No automatic detection of overlapping projects or filesets
* Unsupported file structures need a custom parser, built during onboarding
* Target files are overwritten at delivery. Manual edits to them are lost

## Before you start

* Admin rights to install the GitHub app on the repository, or, for GitLab, to work through staff-assisted setup
* A decision on the observed and delivery branches
* A list of the file formats in scope. See [Supported file formats](https://help.os.translated.com/reference/supported-file-formats.md)

## Where to go next

> [card] [Set up the connector](https://help.os.translated.com/connectors/github-gitlab/setup.md)

> [card] [Request and track translations](https://help.os.translated.com/connectors/github-gitlab/requesting-and-tracking.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.