{{ language }} variable not available in block template
You can solve this with a preprocess hook:

mytheme_preprocess_block(&amp;$variables) {
  $language = \Drupal::languageManager()-&gt;getCurrentLanguage()-&gt;getId();
  $variables['language'] = $language;
}


The language variable will then be available in your block template as it is in the page one.