Introduction
This ReduxDetector detect language in Redux using the plugin i18next-browser-languageDetector for i18next (react-i18next).
Getting started
See Example
npm install --save i18next-browser-languagedetector
npm install --save i18next-redux-languagedetector
// configureI18n;; ;; ;; const LngDetector = ;LngDetector; { i18n ; return i18n;};
// reducers; i18next: i18nextReducer
// index.js;;;;;;;;;; const i18nextConfig = language: null whitelist: 'en' 'de' 'ru' fallbackLng: 'en' ns: 'translations' defaultNS: 'translations' debug: true const store = ; const i18n = ; ReactDOM; ;