mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-26 21:10:19 +00:00
Merge pull request #126 from WebTools-NG/#98-Lang--Forced-Refresh
#98 fixed
This commit is contained in:
commit
684d92738a
1 changed files with 6 additions and 4 deletions
|
@ -54,14 +54,16 @@ export default {
|
|||
this.getOnlineLangs();
|
||||
},
|
||||
methods: {
|
||||
forcedownload() {
|
||||
this.$store.dispatch("updateAndSetLang", { "langCode": i18n.locale, "forceDownload": true});
|
||||
async forcedownload() {
|
||||
this.olLangs = [];
|
||||
await this.$store.dispatch("updateAndSetLang", { "langCode": i18n.locale, "forceDownload": true});
|
||||
this.getOnlineLangs();
|
||||
},
|
||||
joinPOE() {
|
||||
shell.openExternal("https://github.com/WebTools-NG/WebTools-NG/wiki/Translator")
|
||||
},
|
||||
getOnlineLangs() {
|
||||
var onlineLangs = this.$store.getters.getLanguages
|
||||
async getOnlineLangs() {
|
||||
var onlineLangs = await this.$store.getters.getLanguages
|
||||
for (var i=0; i<onlineLangs.length; i++) {
|
||||
var langName = onlineLangs[i]['name'] + ' (' + onlineLangs[i]['percentage'] + '%)';
|
||||
const entry = {}
|
||||
|
|
Loading…
Reference in a new issue