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

Automatically import updated translations from translation.io #3377

Open
Floppy opened this issue Jan 9, 2025 · 0 comments
Open

Automatically import updated translations from translation.io #3377

Floppy opened this issue Jan 9, 2025 · 0 comments
Labels
github_actions Pull requests that update GitHub Actions code good first issue Good for newcomers improvement Refactors and behind-the-scenes improvements

Comments

@Floppy
Copy link
Collaborator

Floppy commented Jan 9, 2025

Translations on translation.io get updated pretty quick, our community are awesome, but often I forget to run the import and commit. It would be good to do this automatically, perhaps nightly, in a github action. The action should:

  1. Check out the latest code
  2. Run rake translation:sync to download from translation.io
  3. Run i18n-tasks normalize -p to process the downloaded files into the right places
  4. Commit the changes
  5. Open a PR and set it to automatically merge

In an ideal world, the author of the changes would get a co-authored-by credit on the commit for their language. Currently I do this manually, I'm not sure there's a way to see who did what automatically from translation.io - perhaps crediting ALL appropriate translators on the commit for a language would be better than nothing? That could be a list hardcoded in the action, perhaps.

@Floppy Floppy added good first issue Good for newcomers improvement Refactors and behind-the-scenes improvements github_actions Pull requests that update GitHub Actions code labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code good first issue Good for newcomers improvement Refactors and behind-the-scenes improvements
Projects
None yet
Development

No branches or pull requests

1 participant