gomoob / i18n

Polyglot.js extended to load JSON translation files and cache them.
MIT License
2 stars 0 forks source link

Add a reconfigure option to the load method. #2

Open bgaillard opened 9 years ago

bgaillard commented 9 years ago

For now the load method automatically reconfigures the Polyglot instance with the retrieved translations.

In some cases we do not want to do this and only want to pull the translations to put them into the translations cache.

We could add a reconfigure option with a default value equal to false to do this. For example at application starting this could be useful to preload several translation files.