Ruby on Rails
Tuesday, October 15, 2019
My application supports a dozen locales. I use different stylesheets for each locale because things differ and it looks better if the styles fit the locale.
Currently I use <%= stylesheet_link_tag "/stylesheets/#{I18n.locale}.css", :media => "screen" %> in my layouts as needed.
This works but I do not get the advantages of fingerprinting and minification that one would get with assets.
Is there a better way to do this?
Thanks
Norm
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment