i18next / i18next-localstorage-backend

This is a i18next cache layer to be used in the browser. It will load and cache resources from localStorage and can be used in combination with the chained backend.
MIT License
88 stars 43 forks source link

Locize requests are submitted after caching. #34

Closed iamskok closed 3 years ago

iamskok commented 3 years ago

🐛 Bug Report

After caching results subsequent requests are submitted to locize service on page refresh.

Screen Shot 2021-09-02 at 1 50 13 PM Screen Shot 2021-09-02 at 1 49 30 PM

To Reproduce

GitHub repo

Expected behavior

No subsequent requests to locize after caching.

Your Environment

adrai commented 3 years ago

Please check if this is still the case after you change the load option here: https://github.com/locize/i18next-locize-backend/issues/342#issuecomment-911951258

iamskok commented 3 years ago

Fixed by adding load: 'currentOnly' option.