title: How to correctly set up React Router with multilanguage/multiple index.html files?
body: <p>I'm building a web app, with latest React and React Router version, in my case my app supports many languages, and due to indexing, we have separate entry html files for each language. So for a url like this myapp.com, we would have</p>
  
  <p><em>myapp.com/en/</em> - for english</p>
  
  <p><em>myapp.com/de/</em> - for german etc...</p>
  
  <p>On the server side each of these <em>/en/</em> folders would of course have their own <em>index.html</em> file with <strong>meta</strong>, <strong>title</strong> and other metadata written in the given language and they all have entry to our React app (<em>bundle.js</em>)</p>
  
  <p>I already built something like this previously with Router Hash History, so my app looked like myapp.com/en/#/home, and my main route in <em>routes.js</em> of course looked like this</p>
  
  <pre><code>&lt;Route path="/" component={MainComponent}
  </code></pre>
  
  <p>Now I want to use BrowserRouter, and I want my routes to look like this
  if the url is <em>myapp.com/en/</em>
  the link would be:</p>
  
  <pre><code>&lt;Link to="/home" /&gt;
  </code></pre>
  
  <p>And once clicked it would take you to <em>myapp.com/en/home</em> and it would render correctly the Compnent that is linked to it in the Route</p>
  
  <pre><code> &lt;Route path="/home" exact component={HomeContainer} /&gt;
  </code></pre>
  
  <p>Basically at the moment this would only work if I did something like this</p>
  
  <pre><code>&lt;Link to=`/${getCurrentLanguage()}/home` /
  </code></pre>
  
  <p>and the route is like this</p>
  
  <pre><code>&lt;Route path=`/${getCurrentLanguage()}/home` exact component={HomeContainer} /&gt;
  </code></pre>
  
  <p>Which is maddness of course,</p>
  
  <p>How can I achieve the desired behavior or do you have any different approach in mind? thanks</p>
  
  <p><strong>edit</strong> I'm not asking anything about React translations, I will be using i18next for translating the React side, I'm asking about the problem of Routing with different index.html files</p>