https://github.com/dhis2/transifex-ci
Scripts for syncing translations between transifex and github
https://github.com/dhis2/transifex-ci
Last synced: 10 days ago
JSON representation
Scripts for syncing translations between transifex and github
- Host: GitHub
- URL: https://github.com/dhis2/transifex-ci
- Owner: dhis2
- License: bsd-3-clause
- Created: 2019-09-18T09:15:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2026-03-12T15:04:10.000Z (4 months ago)
- Last Synced: 2026-03-12T21:10:25.714Z (4 months ago)
- Language: Shell
- Size: 188 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# transifex-ci
Scripts for syncing translations between transifex and github
## Requirements
The following tools are required to run the script:
- git
- hub
- tx
- jq
- iconv
- native2ascii
The script also relies on the following being set as env vars:
- $TXTOKEN : API token for transifex
- $GITHUB_USER : guthub user name
- $GITHUB_PASSWORD : access token for guthub
- [optional] $TRANSIFEX_SYNC_TAG: tag to identify projects to sync (default `jenkins-app-sync`)
## Scripts
```
./transyncosaurus_ALL.sh
```
This is a bash script that performs the following:
- Loops over the projects in transifex looking for tags that include the `jenkins-app-sync` flag.
- Loops over all branches that have resources in the project.
- Pushes the latest source strings to transifex
- Pulls translations from transifex (where more than 20% complete)
- Raises a PR on github if changes are found for any of the languages
(if a PR already exists, then the changes are pushed to that PR)
> ./transyncosaurus_ALL.sh can be used to target a single app by temporarily adding the tag `jenkins-single-app-sync` to the transifex project, and running the script with the TRANSIFEX_SYNC_TAG environment variable set to `jenkins-single-app-sync`
```
./pulltergeist.sh
```
This is a bash script that performs the following:
- Loops over the projects in transifex looking for tags that include the `jenkins-pr-automerge` flag.
- Loops over all branches that have resources in the project.
- Merges any translation PRs on that branch