By editor, 6 November, 2015 How to get the current language in Drupal 8 Tags Drupal 8 Code Translation User Drupal 8 //To get the lanuage code: $language = \Drupal::languageManager()->getCurrentLanguage()->getId(); //To get the language name: $language = \Drupal::languageManager()->getCurrentLanguage()->getName();