-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fixes & Improvements to i18n linting #16
Conversation
|
||
// Check for invalid characters in the translation key | ||
if (!!key.replace(/[a-z0-9_]+/g, "")) { | ||
console.log(`"${key}": key contains invalid characters`); | ||
if (!!key.replace(/[a-z0-9@_.]+/gi, "")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this get a comment please 😇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment at the top of the file describes the key validity rules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah okay, thanks
Review commit-by-commit