title: i18n support is not compatible with next export. (SSR - NextJS 10)
body: <h1>i18n support is not compatible with next export.</h1>
  <h2>NextJS dont run the deploy with i18n</h2>
  <p>Im using nextJS 10, and the main reason that i choose next 10, is that i can do SSR and use the i18n.
  <a href="https://nextjs.org/docs/advanced-features/i18n-routing" rel="noreferrer">Internationalized Routing</a> its a new next js 10 feature and have a page only to tha feature.</p>
  <p>But when im gonna do a deploy, this error appears: <strong>i18n support is not compatible with next export.</strong>
  Theres nothing about this in internationalized routing page.</p>
  <h3>My code</h3>
  <p><strong>next.config.js</strong></p>
  <pre><code>const withImages = require('next-images')
  const path = require('path')
  
  module.exports = withImages({
      esModule: false,
      i18n: {
          locales: ['en-US', 'pt-BR', 'pt-PT', 'es-ES'],
          defaultLocale: 'pt-BR',
        },
  });
  
  </code></pre>
  <p>I created a translate archive that make the condition with next router
  obs: PT and EN are JSON files with text</p>
  <pre><code>import * as pt from &quot;./pt&quot;;
  import * as en from './en';
  import { useRouter } from &quot;next/router&quot;
  
  export const traducao = () =&gt;{
    let routes = useRouter();
  
    let translate;
   
      if (routes.locale == 'pt-PT' || routes.locale == 'pt-BR') {
        translate = pt.default;
      } else {
        translate = en.default;
      }
    
    return translate 
  }
  
  </code></pre>
  <p>And the i just use in my project like a function:</p>
  <p><code>{traducao().homeText.button_text}</code></p>
  <p>Work well, recognizes the browser language and switch.
  Im using deploy script</p>
  <pre><code>npm run deploy
  &quot;deploy&quot;: &quot;npm run clean &amp;&amp; npm run build &amp;&amp; next export -o dist/&quot;
  </code></pre>
  <h3>Steps to reproduce</h3>
  <ol>
  <li>Go to 'next.config,js'</li>
  <li>create the i18n export</li>
  <li>create a Translate file that recognizes the browser language</li>
  <li>import JSONs files with your site text</li>
  <li>Use where you want</li>
  <li>Try to deploy</li>
  </ol>
  <h2>Expected behavior</h2>
  <p>Its just suppose to work fine and Deploy normal.</p>
  <h2>Screenshots</h2>
  <p><img src="https://user-images.githubusercontent.com/47827740/103380122-aceb1680-4ac6-11eb-9178-e00c28092189.png" alt="image" />
  <img src="https://user-images.githubusercontent.com/47827740/103380129-b4aabb00-4ac6-11eb-92c7-3bad5ce75ec2.png" alt="image" />
  <img src="https://user-images.githubusercontent.com/47827740/103380140-bc6a5f80-4ac6-11eb-93b9-41af2f515768.png" alt="image" />
  <img src="https://user-images.githubusercontent.com/47827740/103380173-d4da7a00-4ac6-11eb-972f-9d6e58c68148.png" alt="image" /></p>
  <h2>System information</h2>
  <ul>
  <li>OS: Linux Ubuntu</li>
  <li>IDE: VSCode</li>
  <li>Version of Next.js: 10</li>
  <li>Version of Node.js: v15.3.0</li>
  <li>Deployment: next deploy</li>
  </ul>