-
Notifications
You must be signed in to change notification settings - Fork 542
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
Missing i18n Translation Keys Causing UI Inconsistencies #10401
Comments
If valid, I would like to take this issue up, |
@rajku-dev can we add a lint rule to error out if there are missing i18n translations? so that the build fails if key is not found. |
got it! |
@rajku-dev , I think there is already a plugin configured for i18 in eslint config file and missing translation as warning. Could you check with that . I am not 100% sure btw |
yeah but i think it doesn't offer that particular check we need? |
one additional thing pending would be to get incorrect key usages. |
We can definitely track the errors like that but, these errors are for the "hardcoded-strings" Refer : https://www.npmjs.com/package/eslint-plugin-i18next
24 undefined strings output using a script ![]() to solve the issue before build we should be doing the third check only right, because first check has no significance because it is also checking for hardcode strings inside className, variant, size, href etc. so should we use the no-undefined-translation-keys plugin or both? @rithviknishad |
Describe the bug
Several translation keys used in the
t
function throughout the codebase are missing from theen.json
file. This results in inconsistencies in the UI, where untranslated strings may appear instead of the expected localized text.Example
Expected behavior
All translation keys used in the codebase should have corresponding values in
en.json
to ensure a consistent and fully localized UI.Click here to reproduce
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: