2017-04-24 16:59:28 -07:00
|
|
|
// @flow
|
2017-05-24 17:06:30 -07:00
|
|
|
import { setLanguage } from 'translations';
|
2017-04-13 23:17:22 -07:00
|
|
|
export const CONFIG_LANGUAGE_CHANGE = 'CONFIG_LANGUAGE_CHANGE';
|
|
|
|
export const CONFIG_NODE_CHANGE = 'CONFIG_NODE_CHANGE';
|
|
|
|
|
2017-05-24 17:06:30 -07:00
|
|
|
export const CHANGE_LANGUAGE = (value: any) => {
|
|
|
|
setLanguage(value.sign);
|
|
|
|
return {
|
|
|
|
type: CONFIG_LANGUAGE_CHANGE,
|
|
|
|
value
|
|
|
|
};
|
|
|
|
};
|
2017-04-13 23:17:22 -07:00
|
|
|
|
2017-05-24 17:06:30 -07:00
|
|
|
export const CHANGE_NODE = (value: any) =>
|
|
|
|
Object({
|
|
|
|
type: CONFIG_NODE_CHANGE,
|
|
|
|
value
|
|
|
|
});
|