Question: I am using @ngx/translate core for lang change.
I want to define sass on the basic of

```
<body lang="en">

```

or 

```
<body lang="fr">

```

by if else condition.

```
Inside my component sass i want to do something like this

@if( bodylang = en)

/these rules

else 

// these rules

```

How can i achieve this?

Answer: 
If you want to do it in your component SCSS file you have to do something like bellow code: 

```
:host-context([lang="en"]){
    // Your code
}
:host-context([lang="fa"]){
    // Your code
}

```

If you are doing it in your styles.scss file you can achieve your goal with following code: 

```
[lang="en"] {
    // Your code
}

[lang="fr"] {
    // Your code
}

```
rsangin's answer is the correct one.

If you want to select every language that is not en, you can just use `:not([lang="en"])`