Cypress Translations Checker
Translations are easy to forget. Everyone assumes the developers checked them, so untranslated labels and raw translation keys slip into production. I wanted an extremely low-effort way to catch them without writing a specific test for it every time.
At a glance
- Role: Author and maintainer
- Stack: TypeScript, Cypress plugin
- Used in: WEWIS, starting with Vlaamse Arbeidsmigratie
- Source: VanBelleKoen/cypress_translations_checker
How it works
You configure the plugin once, then write your tests as usual. On every page navigation, the plugin checks whether text matching a translation-key pattern is visible. Your functional tests never fail because of it. Instead, the plugin creates a ghost test, which only becomes a real, failing test in the report when it finds a match.
The hardest part
The regex. It has to catch the many formats translation keys come in without flagging normal text.
What I’m proud of
How quickly it was built. The feedback within WEWIS was positive, especially about how little effort it takes to add.