Integrate Machine Translations into Build Process
Mephistic opened this issue · comments
Goal
We want developers to be able to build features without needing to constantly deal with the hassle of manually translating all in-app text.
Work
To that end, we should add an automatic step to our build process that generates new machine translations whenever we add or update a translation key.
This will likely be easiest as a GitHub Action that scans pushes/PRs for added/changed translation keys, translates just the changed content, and submits a new PR with the translation changes (to be manually reviewed and merged as part of the dev process). There is some existing work in the GitHub Marketplace that handles parts of this - we should dig further into those options.
Success Criteria
- Automatic process that translates new or updated text from our english I18n locale file to our other supported languages
- https://simplelocalize.io/docs/integrations/github-actions/
- https://github.com/marketplace/actions/openai-continuous-translation-action
- https://github.com/marketplace/actions/i18n-auto-translation-action
- https://github.com/marketplace/actions/translation-action
- https://dev.to/lyqht/deepl-translate-github-action-3nk0
- This looks like something that fulfills our exact needs
- Creates translations based on changes in a PR
- This looks like something that fulfills our exact needs