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 add these to the cache/localstorage. I am using the localStorageBackend to cache the static JSON resources, how can I add to the cached namespaces after init?
I have tried using the resourcesToBackend plugin, but am not sure how to make it work.
i18next-resources-to-backend is used mainly as fallback backend... for example if your http backend did not serve the translations... I don't know your use case but if your translations (those you are currently adding via addResourceBundle) are not lazy loaded i18next-resources-to-backend should work as expected, like described in the readme.
If that's not what you're looking for (but I really don't know why), you could directly invoke the save function of the local storage backend... but this is really a hack and not an official interface: i18next.services.backendConnector.backend.backends[0].save('ar', 'topicNS, { topics })
Is it possible to store namespaces that are added after init via
addResourceBundle
in localstorage?I asked the question on stackoverflow and have not had an answer.
The text was updated successfully, but these errors were encountered: