1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 02:58:09 +01:00
metamask-extension/ui/app/ducks/locale/locale.js
2020-02-06 13:08:14 -03:30

14 lines
307 B
JavaScript

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