Hide language flag on this language page? I have 2 languages on my Drupal 8 site and use Language Icons module for them: 


Latin and
Celtic


I think it is not convenient to have both flags on each version. But D8 does not add language code class in body and I cannot hide flag.

Please where is solution?
if you want add class language to body. You can use hook_preprocess_html with code:

function Your_Theme_preprocess_html(&amp;$vars){
  $language = \Drupal::languageManager()-&gt;getCurrentLanguage()-&gt;getId();
  $vars['attributes']['class'][] = $language;
}


class current language will add to body.