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

Fixes & Improvements to i18n linting #16

Merged
merged 6 commits into from
Feb 29, 2024
Merged

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Feb 28, 2024

Review commit-by-commit

@t3chguy t3chguy marked this pull request as ready for review February 28, 2024 13:27
@t3chguy t3chguy requested review from a team, florianduros and robintown and removed request for a team February 28, 2024 13:30
@t3chguy t3chguy self-assigned this Feb 28, 2024

// 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, "")) {
Copy link
Member

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 😇

Copy link
Member Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah okay, thanks

@t3chguy t3chguy requested a review from dbkr February 28, 2024 14:35
@t3chguy t3chguy merged commit 868b141 into main Feb 29, 2024
1 check passed
@t3chguy t3chguy deleted the t3chguy/i18n-lint-element branch February 29, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants