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