This commit is contained in:
2020-03-06 20:26:42 +00:00
parent 1eaf564851
commit 1d874d8d1f
20 changed files with 70 additions and 72 deletions

View File

@@ -9,7 +9,7 @@ export default {
return window.$gz.store.state.translationText[key];
},
fetch(keys) {
return new Promise(function fetchLocaleKeysFromServer(resolve) {
return new Promise(function fetchTranslationKeysFromServer(resolve) {
//
//step 1: build an array of keys that we don't have already
//Note: this will ensure only unique keys go into the store so it's safe to call this with dupes as can happen
@@ -55,7 +55,6 @@ export default {
"Schedule",
"MemoList",
"UserSettings",
"Locale",
"SetLoginPassword",
"NotifySubscriptionList",
"UserPreferences",
@@ -408,12 +407,11 @@ export default {
},
////////////////////////////////////////////////////////
// dynamically set the vuetify language elements from
// users localized text (am/pm etc)
// users translated text
// Keeping vuetify using en locale and just adjusting on top of that
//
setVuetifyDefaultLanguageElements(vm) {
vm.$vuetify.lang.locales.en.close = this.get("OK");
// vm.$vuetify.lang.locales.en.timePicker.am = this.get("AM");
// vm.$vuetify.lang.locales.en.timePicker.pm = this.get("PM");
}
};