managing internationalization via redux
(see react-pagan
demo)
Include i18n reducer in redux:
import { i18n } from 'redux-pagan';
const createStoreWithMiddleware = applyMiddleware(
thunk
)(createStore);
const rootReducer = combineReducers({
i18n
});
const store = createStoreWithMiddleware(rootReducer);
...