mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 03:20:23 +01:00
18 lines
404 B
JavaScript
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
|
|
}
|
|
}
|