You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking to use the unused task across my very large Rails to find unused locales. I have a lot of dynamic locales in the code, as assume this might be causing errors.
Any way i can work out what particularly is causing the issue with the task?
I have run this task using with and without the "--no-strict" parameter.
Below is the detailed output:
Ruby 2.6.6
Rails 6.0.3.1
i18n-tasks 0.9.31
The text was updated successfully, but these errors were encountered:
After a few hours of debugging I finally found the problem in my source.
One of the dynamic locales is an array lookup: t("loopup.something.in.#{somearray["element"]}") when this is compiled to key pattern it ends up with this result (lookup\.something\.in\.somearray[|) which makes the conversion to Regexp fail. The open bracket [ is the culprit here.
Solution for my problem was to remove the array lookup into a helper method.
Hi,
I am looking to use the unused task across my very large Rails to find unused locales. I have a lot of dynamic locales in the code, as assume this might be causing errors.
Any way i can work out what particularly is causing the issue with the task?
I have run this task using with and without the "--no-strict" parameter.
Below is the detailed output:
Ruby 2.6.6
Rails 6.0.3.1
i18n-tasks 0.9.31
The text was updated successfully, but these errors were encountered: