text: /**
   * This file is part of react-redux-i18nify
   */
  
  import { LOAD_TRANSLATIONS, SET_LOCALE } from './actions';
  
  export default (state = {}, action) => {
    switch (action.type) {
      case LOAD_TRANSLATIONS:
        return {
          ...state,
          translations: action.translations,
        };
      case SET_LOCALE:
        return {
          ...state,
          locale: action.locale,
        };
      default:
        return state;
    }
  };
  