Closed prathamVaidya closed 3 months ago
This PR added a new ESLint rule to disallow string literals. This will help users to prefer I18n use over string literals to promote localization.
https://github.com/edvardchen/eslint-plugin-i18next
There are two modes for it:
jsx-only
all
Currently its set to jsx-only. Let me know if you want to change.
There are 306 places where string literals are directly used. I have updated the rule to only throw a warning. Fixing these can be a good-first-issue for beginners.
good-first-issue
What this PR does
This PR added a new ESLint rule to disallow string literals. This will help users to prefer I18n use over string literals to promote localization.
https://github.com/edvardchen/eslint-plugin-i18next
Screenshots
There are two modes for it:
jsx-only
: validates the JSX attributes as wellall
: validates all literal stringsCurrently its set to
jsx-only
. Let me know if you want to change.