This commit is contained in:
2020-03-06 20:08:50 +00:00
parent 7318a33350
commit 17bf519cb0
79 changed files with 331 additions and 309 deletions

View File

@@ -27,25 +27,27 @@
<div>
<span class="ml-6 body-1">12h: </span>
<span class="body-2">
{{ locale().getHour12() }}
{{ translation().getHour12() }}
</span>
</div>
<div>
<span class="ml-6 body-1">{{ lt("TimeZone") }}: </span>
<span class="body-2">
{{ locale().getBrowserTimeZoneName() }}
{{ translation().getBrowserTimeZoneName() }}
</span>
</div>
<div>
<span class="ml-6 body-1">{{ lt("LanguageCode") }}: </span>
<span class="body-2">{{ locale().getBrowserFirstLanguage() }}</span>
<span class="body-2">{{
translation().getBrowserFirstLanguage()
}}</span>
</div>
<div>
<span class="ml-6 body-1">{{ lt("CurrencyCode") }}: </span>
<span class="body-2">{{ locale().getCurrencyName() }}</span>
<span class="body-2">{{ translation().getCurrencyName() }}</span>
</div>
<v-divider class="mt-6"></v-divider>
@@ -167,10 +169,10 @@ export default {
},
methods: {
lt(ltKey) {
return window.$gz.locale.get(ltKey);
return window.$gz.translation.get(ltKey);
},
locale() {
return window.$gz.locale;
translation() {
return window.$gz.translation;
}
}
};
@@ -182,18 +184,18 @@ function generateMenu(vm) {
var menuOptions = {
isMain: false,
icon: "fa-info-circle",
title: window.$gz.locale.get("HelpAboutAyaNova"),
title: window.$gz.translation.get("HelpAboutAyaNova"),
helpUrl: "form-ay-about",
menuItems: [
{
title: window.$gz.locale.get("Copy"),
title: window.$gz.translation.get("Copy"),
icon: "copy",
surface: true,
key: "about:copysupportinfo",
vm: vm
},
{
title: window.$gz.locale.get("Log"),
title: window.$gz.translation.get("Log"),
icon: "glasses",
surface: true,
key: "app:nav:log",
@@ -284,7 +286,7 @@ function fetchUILocalizedText(vm) {
"CurrencyCode"
];
return window.$gz.locale.fetch(ltKeysRequired);
return window.$gz.translation.fetch(ltKeysRequired);
}
////////////////////