SFDigitalServices / formio-sfds

The form.io theme for sf.gov
https://formio-sfds.herokuapp.com/
MIT License
15 stars 2 forks source link

Refactor translation process #166

Open shawnbot opened 3 years ago

shawnbot commented 3 years ago

After working on an urgent form this weekend, I've found that the way we're minting translation strings automatically to be kind of a headache. Some challenges:

It would be nice when you're in form.io to: 1) see the form in other languages with Phrase translations loaded, and 2) know which strings have been "moved" from form.io to Phrase for the purposes of translating. What if, for instance, there was a process that could:

  1. Find all of the human/English content in the form (or just gave you a UI to run down the list and check or uncheck each one??)
  2. Generate appropriate string keys automatically (e.g. by their "path" in the data)
  3. Replace all of the English content in form.io with the string keys so that it's really obvious what can and can't be edited there.
  4. Maybe augment the form.io editor with links to each Phrase key alongside the field in question??