title: Magento 2: How do I get current language of store view code?
body: <p>I'm trying to show a custom block for each store view / language.
  Therefore I want to create switch statement like:</p>
  
  <pre><code>$lang = // Get language code or store view code here;
  switch ($lang) {
  
      case 'en':
          // English block
          break;
  
      case 'nl':
          // Dutch block
          break;
  
      default:
          // Dutch block
          break;
  }
  </code></pre>
  
  <p>How can I get this? I need it in this file <code>\app\design\frontend\Venustheme\floristy\Ves_Themesettings\templates\header\default.phtml</code></p>