Closed tomash closed 9 years ago
Thanks for this PR. I agree to remove scope
and locale
.
All right, will do!
I'll close this PR now. I just implemented it on the master branch, https://github.com/yoolk/liquid-rails/commit/dfcf37ad33789487cfdb5eb304da4bc6abf46091.
First of all, thanks for awesome gem. Saved me a lot of time.
I needed a
translate
filter that'd accept an arbitrary hash and pass it over to Rails'translate
, so that interpolation would work. This PR contains a working implementation.I'd further suggest removing
scope
andlocale
from explicit function params and make everything work as hash: this way interpolation could be used without having to explicitly speciflyscope
andlocale
on every translation that needs interpolation vars. But this is a deeper change and I didn't want to change the api in backwards-incompatible way.