title: Is it possible to auto generate docusarus sidebars from i18n folder?
body: <p>As far as I understand, sidebars can only be auto generated from the /docs folder, and as I'm using docusaurus v2 the docs translations will allow me to use different filenames and slugs, but it's impossible to assign sidebars dirName to a folder outside the /docs folder:</p>
  <pre class="lang-js prettyprint-override"><code>const sidebars = { i18nSidebars: [{ type: 'autogenerated', dirName: 'i18n/es/docusaurus-plugin-content-docs/current' }] };
  module.exports = sidebars;
  </code></pre>
  <p>There's no information about this on the docusaurus documentation (no interaction between docs plugin's sidebars and i18n), I've tried different configurations with no success.</p>
  <p>The problem I see is that once I started using Docusaurus i18n support, I've to copy <code>/docs</code> folder content inside <code>/i18n/[lang]/docusaurus-plugin-content-docs/current</code> to get the translated content built, but the autogenerated sidebars are built from the <code>/docs</code> folder content, so I'm forced to mantain several copies of the same content structure but with the same slugs and filenames (those of the <code>/docs</code> folder), ignoring the translated content slugs and filenames.</p>
  <p>I could create different sidebars and use the <code>displayed_sidebar</code> parameter to switch them from the i18n translated docs, but that also means an extra step on the mantainment of my project as I've one git submodule for each documentation section inside the project, so that each section can be translated by each translation team, and the app core is not affected by anyone.</p>