So i am using CSS, JS and Ruby for a project. Now i have my location set etc, in ruby but i want to access them on my css files. This is to customize views for a particular
You can add current locale to html tag as lang. For example
%html{lang: I18n.locale}
or
and add specific language style with language prefix
html[lang="en"] {
# for english part
}
html[lang="ru"] {
# for russian part
}
also you can change behavior existing class
.test-title {
html[lang="en"] & {
// specific english style
}
}