teach eslint to check translations
What does this PR do?
This adds a custom ESLint rule that detects expressions of the form i18n.ts.*
and i18n.tsx.*
, and checks that they refer to existing elements in the translations. It also tries to check that parametric translations are called with the right arguments.
Tests are expected to fail, because there are, in fact, some missing translations.
If you all like the idea (and the implementation), we should rebase this after merging 2024.9 and add the missing translations.
Contribution Guidelines By submitting this merge request, you agree to follow our Contribution Guidelines
-
I agree to follow this project's Contribution Guidelines -
I have made sure to test this pull request
Merge request reports
Activity
Filter activity
Please register or sign in to reply