anjali
anjali

Reputation: 25

How to apply SCSS based on browser language in Angular?

I am trying to apply SCSS based on browser language. On inspecting i am getting browser language in <html lang = "de"> and on css html[Attributes Style] {-webkit-locale: "en";}like this.

How can I apply CSS on different classes based on the page language?

Upvotes: 1

Views: 545

Answers (1)

Dmitry Sobolevsky
Dmitry Sobolevsky

Reputation: 1191

Could you try this trick?

html[lang="de"] {
  //your styles
}

Upvotes: 4

Related Questions