codeforboston / maple

MAPLE makes it easy for anyone to view and submit testimony to the Massachusetts Legislature about the bills that will shape our future.
https://mapletestimony.org
MIT License
42 stars 110 forks source link

Integrate Machine Translations into Build Process #1557

Open Mephistic opened 4 months ago

Mephistic commented 4 months ago

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

kiminkim724 commented 3 months ago