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

Idea: A GitHub Actions to pull translations from Transifex #25

Open
rffontenelle opened this issue Jun 4, 2023 · 2 comments
Open

Idea: A GitHub Actions to pull translations from Transifex #25

rffontenelle opened this issue Jun 4, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@rffontenelle
Copy link
Owner

Each team has its own solution to pull translations from Transifex. Setting up a solution can be an issue to new teams that prefer to translate rather than keep reinventing the wheel.

How about a GitHub Actions perform all necessary actions to pull translations?

Workflow idea:

   permissions:
     contents: write 
   steps:
    - name: Checkout the repository
       uses: actions/checkout@3
    - name: Pull translations
      uses: THIS_ACTION@main
      with:
        tx_token: ${{ secrets.TX_TOKEN }}
        cpython_branch: 3.12
        commit_and_push: true
  • python-docs-uk has an awesome script that uses transifex-python package to pull translations from Transifex. It is simple and clean.
  • README would instruct on setting up the Transifex API token as repository secret
  • commit_and_push argument in the above example is to avoid the need for posterior commit and push, but leaving false would allow customized commit and push tasks.
  • Note how cpython and dependencies wouldn't have to be set up in the language's workflow.
  • A Docker-based or JavaScript-based github action? I've read JavaScript-based is faster, but I don't know if all these operations can be done other than in Docker-based.
  • This repository could document suggestion to new teams using this new action
@rffontenelle rffontenelle added the enhancement New feature or request label Jun 4, 2023
@m-aciek
Copy link
Contributor

m-aciek commented Jun 4, 2023

There is https://github.com/marketplace/actions/github-transifex-actions. Although it doesn't work with the new Transifex CLI AFAIC. Still we can try to fix it there, or it can be used as an inspiration.

@m-aciek
Copy link
Contributor

m-aciek commented Sep 8, 2024

I think a PyPI package to be used in workflows of the language repos would be as helpful as the native GitHub Action. Potentially the package could be a step in the direction of having a GitHub Action available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants