Translate page title of custom controller in drupal 8

The page callback system in drupal 8 is considerably different from drupal 7. This snippet shows you how to show a title depending on your language.

Subscribe to Multilanguage