summaryrefslogtreecommitdiff
path: root/app/client/system/system.component.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-03-26 14:43:48 +0100
committerJules Laplace <julescarbon@gmail.com>2019-03-26 14:43:48 +0100
commit8c1a9a05599c1e1b45992ab14fc391f89f34e63d (patch)
tree5f8e564efa2663d4ecaba631b10d441900ebf5de /app/client/system/system.component.js
parentd660b951977917c5047da0db21c5c6b3937b764d (diff)
adding i18n framework
Diffstat (limited to 'app/client/system/system.component.js')
-rw-r--r--app/client/system/system.component.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/client/system/system.component.js b/app/client/system/system.component.js
index 3783862..69a6270 100644
--- a/app/client/system/system.component.js
+++ b/app/client/system/system.component.js
@@ -10,6 +10,8 @@ import * as liveActions from '../live/live.actions'
import * as queueActions from '../queue/queue.actions'
import * as authActions from '../auth/auth.actions'
+import * as i18n from '../i18n'
+
const cpu_test_task = {
activity: 'cpu',
module: 'test',
@@ -122,6 +124,13 @@ class System extends Component {
<button onClick={() => actions.queue.start_task(wait_test_task, { preempt: true, watch: true })}>Wait and Buzz</button>
</Param>
</Group>
+ <Group title="Internationalization">
+ <Param title="Language">
+ {i18n.languages.map(language => (
+ <button onClick={() => actions.system.changeLanguage(language)}>{language}</button>
+ ))}
+ </Param>
+ </Group>
</div>
{this.renderCommandOutput()}
</div>