Open juanmanuelramallo opened 4 years ago
Is this an .rb
file? Here is where the I18n.t
calls are handled for .rb
files, in case you want to give fixing it a go:
If it's not an .rb
file, fixing this will be trickier because the calls there are found with a regexp:
Yes it is an .rb
file, hence the RuboCop cop complains.
Thank for the heads up! I'll try to invest some time on it later this week, or maybe in the weekend.
Steps to reproduce
bundle exec i18n-tasks health
Expected
To see in the output:
✓ Good job! Every translation is in use.
Actual
Unused keys are displayed:
Why the multi-line strings
We usually encourage the line length to be 100 chars max with a RuboCop rule, then when the translation key is long or it's used in the middle of the line, we have no choice rather than splitting the string into multiple lines for better readability and complying with the code styleguide.