You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use the LocizeBackend CDN backend as the cache backup for the local resource backend (resourcesToBackend). We are deploying these on a mobile app - and it isn't appropriate to use a suspense loading fallback for the >100ms of time waiting for the locize CDN on initial app load.
Motivation
We need immediate load of translation files (our mobile app is used in a lot of low service areas so a network request blocking translations is a non-starter), but we love the flexibility that your hosted CDN provides, so ideally we load from disk (bundled files) and then at some frequency ping for new translation values from the CDN.
Maybe this is already possible to use with the ChainedBackend, ResourcesToBackend and LocizeBackend but I could not get it to run. Because there are local files for the ResourcesToBackend, it never tries to read from the LocizeBackend, with the
`cacheHitMode: 'refreshAndUpdateStore' attribute set.
Example
The text was updated successfully, but these errors were encountered:
davidemerritt
changed the title
Using locize backend as the backup for a resourceToBackend
Using locize backend as the backup for a resourcesToBackend primary
Sep 14, 2023
🚀 Feature Proposal
I would like to use the LocizeBackend CDN backend as the cache backup for the local resource backend (
resourcesToBackend
). We are deploying these on a mobile app - and it isn't appropriate to use a suspense loading fallback for the >100ms of time waiting for the locize CDN on initial app load.Motivation
We need immediate load of translation files (our mobile app is used in a lot of low service areas so a network request blocking translations is a non-starter), but we love the flexibility that your hosted CDN provides, so ideally we load from disk (bundled files) and then at some frequency ping for new translation values from the CDN.
Maybe this is already possible to use with the ChainedBackend, ResourcesToBackend and LocizeBackend but I could not get it to run. Because there are local files for the ResourcesToBackend, it never tries to read from the LocizeBackend, with the
`cacheHitMode: 'refreshAndUpdateStore' attribute set.
Example
The text was updated successfully, but these errors were encountered: