mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 02:58:09 +01:00
14 lines
307 B
JavaScript
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
|
|
}
|
|
}
|