title: Can you forward a locale to a language in nextjs i18n?
body: <p>Let's say I support the languages <code>['en', 'de']</code>, then I want to redirect requests with a header of e.g <code>Accept-Language: de-DE</code> to <code>de</code>, because it's the closest thing I support.</p>
  <pre class="lang-js prettyprint-override"><code>// This is my i18n config
  module.exports = {
    i18n: {
      defaultLocale: 'en',
      locales: ['en', 'de']
    }
  };
  
  // Sample requests
  // Accept-Language: de-DE    =&gt; goes to /en but should be /de
  // Accept-Language: en-US,de =&gt; goes to /de but should be /en
  </code></pre>
  <p>So basically if the user requests a specific locale that I don't have, but I support the general language, the user should get that language. Is that possible?</p>