ldc-com-app/ComApp/src/App/Store/Actions/locales.js
Jérémy Munsch 918e20a72b
SYNC 15 Major update, Formularies and Fixes
- 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
2023-09-04 10:08:53 +02:00

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,
};
};