diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-03-26 14:43:48 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-03-26 14:43:48 +0100 |
| commit | 8c1a9a05599c1e1b45992ab14fc391f89f34e63d (patch) | |
| tree | 5f8e564efa2663d4ecaba631b10d441900ebf5de /app/client/system/system.actions.js | |
| parent | d660b951977917c5047da0db21c5c6b3937b764d (diff) | |
adding i18n framework
Diffstat (limited to 'app/client/system/system.actions.js')
| -rw-r--r-- | app/client/system/system.actions.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/client/system/system.actions.js b/app/client/system/system.actions.js index ccd9acd..73cea28 100644 --- a/app/client/system/system.actions.js +++ b/app/client/system/system.actions.js @@ -41,6 +41,11 @@ export const changeTool = (tool) => { return { type: types.app.change_tool, tool } } +export const changeLanguage = (language) => { + localStorage.setItem('cortex.i18n.language', language) + return { type: types.system.change_language, language } +} + export const enqueue_test_task = (dataset) => dispatch => { const task = { module: 'test', |
