Merge pull request #52 from WebTools-NG/#32-Menu-lang-change

just some logging
This commit is contained in:
Tommy Mikkelsen 2020-06-12 21:13:20 +02:00 committed by GitHub
commit 16a349dbc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,7 @@
<script>
// User Config
import {wtconfig, wtutils} from '../wtutils';
const log = require('electron-log');
export default {
name: 'locale-changer',
@ -34,9 +35,9 @@ export default {
this.langs.push(r[i].slice(0,-5))
}
},
onChange(event) {
console.log('language set to:' + event.target.value);
wtconfig.set('general.language', event.target.value);
onChange(event) {
log.info('language set to:' + event.target.value);
wtconfig.set('general.language', event.target.value);
}
}
}