How to use the react-i18nify.I18n.setTranslationsGetter function in react-i18nify

To help you get started, we’ve selected a few react-i18nify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github artisavotins / react-redux-i18n / src / index.js View on Github external
export function syncTranslationWithStore(store) {
  I18n.setTranslationsGetter(() => store.getState().i18n.translations || {});
  I18n.setLocaleGetter(() => store.getState().i18n.locale || '');
}