Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to verify translation data in translations #30

Open
miafoo opened this issue Dec 16, 2019 · 0 comments
Open

Add script to verify translation data in translations #30

miafoo opened this issue Dec 16, 2019 · 0 comments

Comments

@miafoo
Copy link
Member

miafoo commented Dec 16, 2019

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.

@miafoo miafoo changed the title Create script which verifies translation data Add script to verify translation data in translations Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant