- Add type Definitions - Fix models methods - Sync controller add route names - Formularies sync OK - Closes https://lab.s-web.fr/ldc-web/projets/com-app-bo/-/issues/18 - Closes https://lab.s-web.fr/ldc-web/projets/com-app/-/issues/9
31 lines
529 B
JavaScript
31 lines
529 B
JavaScript
import { EDIT_LOCALE, INIT_LOCALE } from './actionType';
|
|
|
|
/**
|
|
* @typedef { {type: typeof INIT_LOCALE, data: string } } InitLocaleAction
|
|
*/
|
|
|
|
/**
|
|
* Init locale
|
|
* @param {string} data The locale data
|
|
*/
|
|
export const initLocale = data => {
|
|
return {
|
|
type: INIT_LOCALE,
|
|
data,
|
|
};
|
|
};
|
|
|
|
/**
|
|
* @typedef { {type: typeof EDIT_LOCALE, data: string } } EditLocaleAction
|
|
*/
|
|
|
|
/**
|
|
* Edit locale
|
|
* @param {string} data The locale data
|
|
*/
|
|
export const editLocale = data => {
|
|
return {
|
|
type: EDIT_LOCALE,
|
|
data,
|
|
};
|
|
};
|