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

Set up I18n Linting

Mephistic opened this issue · comments

Goal

We want to identify in-app text that needs to be extracted for translation. The solution should handle both identifying unhandled text in our existing code and become part of our build process to identify improperly handled text going forward.

Success Criteria

  • Add linting step to identify I18n text (at "warn" level to not block builds)
  • Portion out remaining work for extracting text for I18n
  • After reaching 0 warnings remaining, upgrade the linting step to "error" level to ensure future compliance

Additional Info

  • The linter seems effective, but I've found it doesn't seem to handle our page titles well - this is minor enough that I wouldn't consider it blocking after our first pass, but worth poking around a bit more with the settings.