Add script to verify translation data in translations
miafoo opened this issue · comments
Mia commented
For example, this should throw an error:
#: src/pages/Organizations/OrganizationNamespaceContactEdit.tsx:189
#: src/pages/Workshops/components/WorkshopBookingExplanation.tsx:34
msgid "Example link: <example />"
msgstr "Exempellänk: <exempel />"
example
mismatches exempel
.
We could also consider making a warning if spacing differs eg. Hello {name}
and Hej{name}
... although I suppose some languages that might be different rules so it might be tricky.
This script could be added in the react-i18n repo as well for other's convenience.