diff --git a/public/locales/en.json b/public/locales/en.json index ee0350b..5d1ed1f 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -5,7 +5,10 @@ "About": "@:Common.AppName provides different tool modules to help with Plex Server management.", "Modules": "Currently available tool modules are:", "Name": "Home", - "Title": "Welcome to @:Common.AppName" + "Title": "Welcome to @:Common.AppName", + "LangUpdateTitle": "Language update", + "LangUpdateMsg": "{0} Language has been updated on the translation site", + "LangUpdateMsg2": "Please go to Language section and select '{0}'" }, "Language": { "Description": "@:Common.Language.Name allows you to change language of the app", diff --git a/src/components/Home.vue b/src/components/Home.vue index 0b2b94b..962abf8 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -18,7 +18,63 @@ diff --git a/src/components/Language.vue b/src/components/Language.vue index d97b2d8..24cf71b 100644 --- a/src/components/Language.vue +++ b/src/components/Language.vue @@ -87,6 +87,7 @@ // User Config import i18n from '../i18n'; import { shell } from 'electron'; +import { wtconfig} from '../wtutils' const log = require('electron-log'); export default { @@ -105,6 +106,21 @@ export default { this.olLangs = []; await this.$store.dispatch("updateAndSetLang", { "langCode": i18n.locale, "forceDownload": true}); this.getOnlineLangs(); + + console.log('Ged lang time: ' + i18n.locale) + //const langTimeStamp = 'ged223344' + // Get timeStamp + let timeStamp = '' + var onlineLangs = await this.$store.getters.getLanguages + for (var i=0; i h(App), router: router,