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

Add i18n-tasks gem #253

Open
gravitystorm opened this issue Feb 26, 2023 · 1 comment
Open

Add i18n-tasks gem #253

gravitystorm opened this issue Feb 26, 2023 · 1 comment

Comments

@gravitystorm
Copy link
Owner

While refactoring some translations strings I found one containing raw html without the _html suffix - so I knew that that it hadn't been used since rails 4 was released! I tracked it down and the use of the string was removed in 2013, so it's worth finding if there are more strings that might be completely unused but still creating work for our translators.

I found some more by using https://github.com/glebm/i18n-tasks/ which does some static analysis to figure out what is in use. It will need some configuration, particularly to avoid false positives in keys used by activerecord and error handling, but it's still very useful.

@gravitystorm
Copy link
Owner Author

The gem is now added, but it needs further work before we're using any of the tests in CI. The first target is to remove the remaining unused translations, and update the configuration to ignore the remaining false positives.

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

No branches or pull requests

1 participant