This plugin provides the functionality of persisting translations to the provided storage.
TranslocoPersistTranslationsModule module into the
TranslocoRootModule, and provide the storage you would like to use:
Note that you should not include the default loader to make it work.
You can also use an async storage. For example, let's install localForage and use
TranslocoPersistTranslationsModule can also receive the following configuration:
ttl: How long the cache should live in seconds.
storageKey: The key to be used to save the translations data.
The storage cleanup is done automatically once the
ttl is passed, but it could also can be done manually by calling
clearCache method from the cache service: