{"size": 277, "ext": "js", "max_stars_repo_path": "js/reducers/preferences.js", "max_stars_repo_name": "numical/impossiblefish_archive03", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/reducers/preferences.js", "max_issues_repo_name": "numical/impossiblefish_archive03", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/reducers/preferences.js", "max_forks_repo_name": "numical/impossiblefish_archive03", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.4666666667, "max_line_length": 57, "alphanum_fraction": 0.6462093863}
import { CHANGE_LOCALE } from '../actions/preferences.js'

const initialState = {
  locale: 'en'
}

export default (state = initialState, action) => {
  switch (action.type) {
    case CHANGE_LOCALE:
      return { locale: action.locale }
    default:
      return state
  }
}
