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

No comments:

Post a Comment