Skip to content

Latest commit

 

History

History
111 lines (90 loc) · 2.5 KB

README.md

File metadata and controls

111 lines (90 loc) · 2.5 KB

redux-pagan

managing internationalization via redux

(see react-pagan demo)

Setup redux store

Include i18n reducer in redux:

import { i18n } from 'redux-pagan';

const createStoreWithMiddleware = applyMiddleware(
  thunk
)(createStore);

const rootReducer = combineReducers({
  i18n
});

const store = createStoreWithMiddleware(rootReducer);
...

Loading lang data