1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 18:41:38 +01:00
metamask-extension/ui/app/reducers/locale.js

18 lines
408 B
JavaScript
Raw Normal View History

2018-03-16 01:29:45 +01:00
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 extend(localeMessagesState, {
current: action.value,
})
2018-03-16 01:29:45 +01:00
default:
return localeMessagesState
}
}