Closed afdev82 closed 2 years ago
Seems like good examples to add to the ERB-test suite! 🙂
I found that the syntax used was not valid, I had to change from
g.column {
name: t('admin.statistics.country'),
attribute: 'country_id',
assoc: :location,
custom_filter: ...
} do |users_mirror|
...
end
to
g.column name: t('admin.statistics.country'),
attribute: 'country_id',
assoc: :location,
custom_filter: ... do |users_mirror|
...
end
And this has solved also the issue with the unused translations! Sorry for the noise.
Ah, that makes sense!
I open a new issue since I'm not sure it's related to already opened issues about false positive unused translations. Before v1 I had no warnings (v0.9.37), now I'm getting some unused translations that are used in
erb
files, such:Some translations in the same file are found, like
attributes.created_at
oradmin.statistics.name
. Others not, likeadmin.statistics.country
andadmin.statistics.city
and I don't have any idea what it could be the reason / difference. I have other examples in the file, but I took them out for brevity. The issue is happening in two files with the same structure (use of thegrid
method from the wice_grid gem).I've done a
git bisect
, but since I'm getting errors during the scan in between, I couldn't inspect all commits. Currently I have this problem with v1.0.7 and all versions (as far as I can see) after commit d51327c.Let me know if I can help further. Thank you for your help!