aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers/locale.js
blob: edfe9e86526dc3b92215b639da7c0e984ac77061 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const extend = require('xtend')
const actions = require('../actions')

module.exports = reduceMetamask

function reduceMetamask (state, action) {
  const localeMessagesState = extend({}, state.localeMessages)

  switch (action.type) {
    case actions.SET_LOCALE_MESSAGES:
      return action.value
    default:
      return localeMessagesState
  }
}