title: Making a call to a CDN in react-i18next?
body: <p>I am attempting to access the resources for my localized app using i18next-resources-to-backend and i18next-chained-backend using the framework recommended here: <a href="https://www.i18next.com/how-to/backend-fallback" rel="nofollow noreferrer">https://www.i18next.com/how-to/backend-fallback</a>, with the key difference being I am attempting to access the resources from a CDN, not a locale file.</p>
  <pre><code>.init({
   fallbackLng: 'en',
   namespace: 'resources'
  )}
  </code></pre>
  <pre><code>backend: {
    backends: [
    HttpBackend,
    resourcesToBackend((language, namespace, callback) =&gt; {
    import(`./${language}/${namespace}.json`)
     .then(resources =&gt; {
      callback(null, resources)
  })
  .catch(error =&gt; {
  callback(error, null)
  })
   })
  ]
  },
  backendOptions: [
  {
   loadPath: 'https://url/domain/link/dir/{language}}/{{namespace}}.json'
  }
  ]
  </code></pre>
  <p>It is not working and I am getting this error in the console:</p>
  <blockquote>
  <p>Object { error: Error }: ​error: Error: Cannot find module './es/translation.json'</p>
  </blockquote>
  <p>Anyone have experience with this problem?</p>