Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up Transifex for translations #1053

Open
barbeau opened this issue Nov 3, 2020 · 2 comments
Open

Set up Transifex for translations #1053

barbeau opened this issue Nov 3, 2020 · 2 comments
Milestone

Comments

@barbeau
Copy link
Member

barbeau commented Nov 3, 2020

Summary:

OTSF now has a Transifex account that is actively being used for translations on iOS:
https://www.transifex.com/open-transit-software-foundation/

We should do the same on Android.

Steps to reproduce:

Try to do a translation

Expected behavior:

Make it easy via Transifex

Observed behavior:

It's hard

@barbeau
Copy link
Member Author

barbeau commented Sep 23, 2021

I set up the push of strings to Transifex in a GitHub Action as part of this project - barbeau/gpstest#526 (comment).

It uses a script:
https://github.com/barbeau/gpstest/blob/master/scripts/push-to-transifex.sh

...that's triggered from the GitHub Action:
https://github.com/barbeau/gpstest/blob/master/.github/workflows/transifex.yml

Here's the magic for authentication:

export TX_TOKEN=$TRANSIFEX_API_TOKEN
tx push -s --force --no-interactive

and this in the GitHub Action:

env:
  TRANSIFEX_API_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }}

Apparently the TRANSIFEX_API_TOKEN GitHub secret for Transifex API token has to be set up as a "Repository" secret and not "Environmental" secret in the GitHub UI.

@barbeau
Copy link
Member Author

barbeau commented Sep 23, 2021

OBA iOS has this step automated too, but configured via Transifex to pull strings on GitHub PR merges. Might be a cleaner approach that doesn't require scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant