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.

Home Page:https://mapletestimony.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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