GitHub
Link a repository and AirGlot reads the template straight from GitHub. You don't need a CI job or a token for syncing: each push that changes the template on the linked branch syncs it, and AirGlot reports the result as a check on the commit.
You still use the CLI and a token with the Export scope to pull translations into your build (Flutter or web), or over the air for Flutter.
1. Connect GitHub to your team
Go to Team settings › Integrations in AirGlot and connect GitHub. GitHub asks you to install the AirGlot GitHub app on your account or organisation and choose which repositories it can see.
The app asks for:
- Contents: read-only, to read the template and existing translations.
- Checks: read and write, to report each sync on the commit.
- Metadata: read-only, which GitHub requires for every app.
AirGlot never writes to your code.
2. Link the repository
For a new app: under your project, select Connect app, choose GitHub as the way strings come in, and pick the repository. AirGlot finds the template files in it and guesses the format. Pick the template, check the source language, and optionally import the translations already in the repository. Imported translations are marked unreviewed and don't ship until someone approves them.
For an existing app: open the app's settings, then Integrations › GitHub, and pick the repository and branch.
AirGlot syncs the template as soon as the link is made.
3. Push as usual
From then on, every push to the linked branch that changes the template syncs it. The commit gets an Airglot sync check that passes, or fails with the template's problems.
If the app also syncs from CI, both work and the most recent sync wins.
If something goes wrong
- The repository isn't listed: the AirGlot GitHub app can't see it. Select Add a repository on GitHub and give the app access to it.
- "Disconnected — reconnect on GitHub": the GitHub app was uninstalled or suspended. Reconnect it under Team settings › Integrations.
- A push didn't sync: check that it went to the linked branch and changed the template file. Pushes that don't touch the template are ignored.