1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 03:20:23 +01:00
metamask-extension/ui/app/ducks/locale/locale.js
2020-01-13 12:59:21 -03:30

18 lines
404 B
JavaScript

import { actionConstants } from '../../store/actions'
export default reduceMetamask
function reduceMetamask (state, action) {
const localeMessagesState = { ...state.localeMessages }
switch (action.type) {
case actionConstants.SET_CURRENT_LOCALE:
return {
...localeMessagesState,
current: action.value.messages,
}
default:
return localeMessagesState
}
}