Closed abhijit945 closed 4 years ago
might be you should pass backendOptions correctly...backendOptions: [{}, { loadPath }],
Works! That does make sense! Thank you.
If you like this module don’t forget to star this repo. Make a tweet, share the word or have a look at our https://locize.com to support the devs of this project.
There are many ways to help this project 🙏
🐛 Bug Report
A clear and concise description of what the bug is.
To Reproduce
A codesandbox example or similar or at least steps to reproduce the behavior:
Assume
System.resolve
resolves tolocalhost:5000
via@libra/ui
Expected behavior
There are 2 scenarios here:
With ChainedBackend + HTTPBackend + LocalStorageBackend similar to here The network request that are made are
http://localhost:8000/locales/ja-jp/translation.json
instead (resulting in 404)With HTTPBackend only: With following changes:
Can confirm this works:
http://localhost:5000/locales/ja-jp/translation.json
with a satisfying 200 OK!Additional Debug information
For some reason the
loadPath
going into each plugin is different. TheloadPath
should be a function (which is only true to first plugin and not the second)Your Environment