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 check if the correct data variables are present in the translations #29

Closed
nhannah opened this issue Dec 13, 2019 · 2 comments

Comments

@nhannah
Copy link

nhannah commented Dec 13, 2019

Currently t('This {word} is in a translated sentence.', { word: 'Variable'}) receiving the translation 'This {aWord} is in a translated sentence.' causes a crash. This leaves a fair deal of risk in the hands of the translator.

@miafoo miafoo changed the title Translations using wrong variable name cause error Add script to check if the correct data variables are present in the translations Dec 16, 2019
@miafoo
Copy link
Member

miafoo commented Dec 16, 2019

Good point, I've updated the title and also added another issue which is similar: #30

@miafoo
Copy link
Member

miafoo commented Nov 22, 2023

We now have a eslint plugin to detect these things: https://github.com/connectedcars/eslint-plugin-react-i18n

@miafoo miafoo closed this as completed Nov 22, 2023
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

2 participants