Skip to content

Scripts for syncing translations between transifex and github

License

Notifications You must be signed in to change notification settings

dhis2/transifex-ci

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

About

Scripts for syncing translations between transifex and github

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published