Option to skip_locale
Opened this issue · 1 comments
nimmolo commented
Would you accept a PR to add an option to skip_locale: true
?
My site has 16 locales currently. In most cases I do want the default behavior of this gem — I don't want to forget to cache locale somewhere.
But I have also some nested fragments that are never translated: place names, scientific names (biology). It would be nice to be able to pass an option to cache to skip the 16 locales.
cache(key, skip_locale: true) do
tag.span(untranslated_string)
end
I think this will help people minimize on cache space, as this would produce only one cache fragment in these cases.
igorkasyanchuk commented
Yes, will accept