title: How to install a language pack in Magento 2?
body: <p>I tried to follow the instructions from <a href="https://mage2.pro/t/topic/270" rel="noreferrer">https://mage2.pro/t/topic/270</a> and <a href="http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-i18n.html#config-cli-subcommands-xlate-example2" rel="noreferrer">http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-i18n.html#config-cli-subcommands-xlate-example2</a>
  but I still failed.</p>
  
  <p>I'm trying to change the text of the search box in the header from 'Search entire store here...' to 'Suche...'</p>
  
  <p>Right now, I have the following files in app/i18n/Test/de_ch</p>
  
  <ul>
  <li>composer.json</li>
  <li>de_ch.csv</li>
  <li>language.xml</li>
  <li>registration.php</li>
  </ul>
  
  <p>With this content in <strong>composer.json</strong></p>
  
  <pre><code>{
    "name": "test/de_ch",
    "description": "German (Switzerland) language",
    "version": "100.0.1",
    "license": [
      "OSL-3.0",
      "AFL-3.0"
    ],
    "require": {
      "magento/framework": "100.0.*"
    },
    "type": "magento2-language",
    "autoload": {
      "files": [
        "registration.php"
      ]
    }
  }
  </code></pre>
  
  <p><strong>de_ch.csv</strong></p>
  
  <pre><code>"Search entire store here...","Suche..."
  </code></pre>
  
  <p><strong>language.xml</strong></p>
  
  <pre><code>&lt;language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd"&gt;
     &lt;code&gt;de_CH&lt;/code&gt;
     &lt;vendor&gt;Test&lt;/vendor&gt;
     &lt;package&gt;de_ch&lt;/package&gt;
  &lt;/language&gt;
  </code></pre>
  
  <p><strong>registration.php</strong></p>
  
  <pre><code>&lt;?php \Magento\Framework\Component\ComponentRegistrar::register(\Magento\Framework\Component\ComponentRegistrar::LANGUAGE,'Test_de_ch',__DIR__);
  </code></pre>
  
  <p>In the admin, I configured the store (Stores > Configuration > General > General > Locale Options > Locale) with Deutsch (Schweiz).</p>
  
  <p>Then, tried to php bin/magento setup:upgrade and php bin/magento cache:clean</p>
  
  <p>But nothing, the text in the Search form is still 'Search entire store here...'</p>