geeksforsocialchange / imok

A simple bot to support people doing risky activities
https://gfsc.studio/blog/2021/imok-is-launched/
MIT License
11 stars 1 forks source link

Set up a really good workflow for translations #86

Open kimadactyl opened 3 years ago

kimadactyl commented 3 years ago

Overview

Right now importing translations is a bit of a mess.

Ideally once langauges are set up, we should just have to click a button to import them

Acceptance Criteria

wheresalice commented 3 years ago

Proposal:

  1. Configure POEditor to push the mo file as well as the po file
  2. Write a GitHub action to automatically raise PRs from the POEditor branch to the main branch
  3. (optionally) Use Mergify to automatically approve PRs from the POEditor branch if they pass CI

A POEditor admin then just needs to press the export to GitHub button, which would only be done when the language is complete and proof-read in POEditor.

Can we do something with webhooks in POEditor to send an announcement somewhere when languages reach 100% proof-read?

kimadactyl commented 3 years ago

That all sounds great to me! Not sure we need automatic merges, feel like we should prob have some human in the middle at least while we get it rolling. The announcement sounds really helpful tho.

wheresalice commented 3 years ago

I think you will need to do the configuration of POEditor to include the .mo file, I can probably pick up everything else.