This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
</v-flex>
|
||||
<v-flex mb-4 v-if="this.formReady">
|
||||
<h1 class="display-2 font-weight-bold mb-3">
|
||||
{{ this.$gzlocale.get("Welcome") }}
|
||||
{{ lt("Welcome") }}
|
||||
</h1>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
@@ -21,7 +21,7 @@
|
||||
<script>
|
||||
export default {
|
||||
created() {
|
||||
this.$gzlocale
|
||||
window.$gz.locale
|
||||
.fetch(["Welcome"])
|
||||
.then(() => (this.formReady = true))
|
||||
.catch(err => {
|
||||
@@ -31,6 +31,11 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return { formReady: false };
|
||||
},
|
||||
methods: {
|
||||
lt(ltKey) {
|
||||
return window.$gz.locale.get(ltKey);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user