title: Best practice to render Laravel site in other language
body: <h1>Description</h1>
  <p>I have a Laravel site is in English. I want to make it compatible with Dutch also.</p>
  <hr />
  <p>I start my homepage small, it only contain 3 sentences.</p>
  <pre><code>&lt;h1 class=&quot;heading&quot;&gt;My business WiFi&lt;/h1&gt;
  &lt;p&gt;Management via this page both your &lt;a&gt;private WiFi&lt;/a&gt; as your &lt;a&gt;guest wifi&lt;/a&gt;.&lt;/p&gt;
  &lt;p&gt;Or follow the use of your WiFi via our &lt;a&gt;statistics&lt;/a&gt;.&lt;/p&gt;
  </code></pre>
  <p>which will render this</p>
  <pre><code>My business WiFi
  Management via this page both your private WiFi as your guest wifi.
  Or follow the use of your WiFi via our statistics.
  </code></pre>
  <hr />
  <h1>Attempt</h1>
  <p>I've installed this <a href="https://github.com/mcamara/laravel-localization" rel="nofollow noreferrer">Laravel package</a> and did all the installation steps from that repo.</p>
  <p>My routes, service provider, alias, middleware, resources/lang/ , and the laravellocalization.php are all in to place.</p>
  <hr />
  <p><strong>routes.php</strong></p>
  <pre><code>Route::group(['prefix' =&gt; LaravelLocalization::setLocale(), 'middleware' =&gt; [ 'localeSessionRedirect', 'localizationRedirect','localize'] ], function(){
  
      Route::get('/homepage', 'homepageController@index');
  
  }); 
  </code></pre>
  <hr />
  <p><strong>update providers array</strong></p>
  <pre><code>Mcamara\LaravelLocalization\LaravelLocalizationServiceProvider::class
  </code></pre>
  <p><strong>update alias</strong></p>
  <pre><code>'LaravelLocalization'   =&gt; Mcamara\LaravelLocalization\Facades\LaravelLocalization::class
  </code></pre>
  <hr />
  <p><strong>update $routeMiddleware</strong></p>
  <pre><code>'localize' =&gt; \Mcamara\LaravelLocalization\Middleware\LaravelLocalizationRoutes::class,
  'localizationRedirect' =&gt; \Mcamara\LaravelLocalization\Middleware\LaravelLocalizationRedirectFilter::class,
  'localeSessionRedirect' =&gt; \Mcamara\LaravelLocalization\Middleware\LocaleSessionRedirect::class
  </code></pre>
  <hr />
  <p><strong>/config/laravellocalization.php</strong></p>
  <pre><code>&lt;?php
  
  return [
  
      'supportedLocales' =&gt; [
          'en'          =&gt; ['name' =&gt; 'English','script' =&gt; 'Latn', 'native' =&gt; 'English'],
          'nl'          =&gt; ['name' =&gt; 'Dutch','script' =&gt; 'Latn', 'native' =&gt; 'Nederlands'],
      ],
  
      'useAcceptLanguageHeader' =&gt; true,
      'hideDefaultLocaleInURL' =&gt; false,
  ];
  </code></pre>
  <hr />
  <p><strong>Result</strong></p>
  <p>When I visit</p>
  <pre><code>http://site/nl/homepage
  </code></pre>
  <p>OR</p>
  <pre><code>http://site/en/homepage
  http://site/homepage
  </code></pre>
  <p>I saw my site load as it should in English, which is good.</p>
  <p>It return <code>404</code> when I visit some other site that not declared.</p>
  <p><strong>China</strong></p>
  <p><code>Ex. http://site/zh/homepage</code></p>
  <p>Which is good because it works as intended.</p>
  <hr />
  <p>But my main goal is I want see my site in Dutch when I land on</p>
  <p>http://site/nl/homepage</p>
  <p>I should see this 3 sentences below in <strong>Dutch</strong></p>
  <pre><code>My business WiFi
  Management via this page both your private WiFi as your guest wifi.
  Or follow the use of your WiFi via our statistics.
  </code></pre>
  <hr />
  <h1>Questions</h1>
  <p>Is this something that I need to declare <code>/resources/lang/nl/texts.php</code>?</p>
  <p>Or is this something that can be achievable via library / plug-in / framework?</p>