Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jbockler
Copy link
Contributor

We recently ran into I18n::ReservedInterpolationKey errors because we used format as an interpolation key. That made us wonder why i18n-tasks, which we run in CI, didn’t catch it.

Turns out this kind of check isn’t part of the gem – so I added one.

Would love your thoughts on whether this makes sense as a general feature or if we should just keep it as a project-specific check.

Introduce a new check to identify translations that use reserved
interpolation keys (e.g., 'count', 'scope').
Copy link
Collaborator

@davidwessman davidwessman left a comment

Choose a reason for hiding this comment

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

Please fix rubocop errors and normalize the new translations 🙂
You can ignore the ruby 2.6 tests

@jbockler
Copy link
Contributor Author

I haven’t used plain RuboCop in a while and mixed up the --autocorrect option with --fix from standardrb 😅
But everything should be fixed now 🙂

@glebm glebm merged commit e06a2d1 into glebm:main Apr 24, 2025
8 of 9 checks passed
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.

3 participants