mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-23 03:23:05 +00:00
Merge pull request #52 from WebTools-NG/#32-Menu-lang-change
just some logging
This commit is contained in:
commit
16a349dbc6
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue