Skip to content
Snippets Groups Projects
Commit 62d7df36 authored by Lukas Gygi's avatar Lukas Gygi
Browse files

added multilanguage button

parent 972c6614
No related branches found
No related tags found
1 merge request!49i18n
import m from 'mithril';
import { i18n, switchLanguage } from '../models/language';
import { Button, Tabs } from '../components';
import { Tabs, Button } from '../components';
import { checkLogin, isLoggedIn, logout } from '../models/auth';
const defaultTabs = ['AMIV', 'Events', 'Studienunterlagen', 'Jobs'];
......@@ -73,6 +73,10 @@ export default class Layout {
tabs: this.tabs.map(tab => ({ label: tab })),
selectedTab: this.selectedTabIndex,
}),
m(Button, {
label: i18n('language_button'),
events: { onclick: () => switchLanguage() },
}),
m('main', vnode.children),
]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment