0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 03:05:15 +00:00

fix: #523 lang import

This commit is contained in:
Nikita Krupin 2022-08-27 16:02:20 -04:00
parent b5892bca8a
commit 1ff340cd0a
2 changed files with 30 additions and 24 deletions

View file

@ -61,10 +61,12 @@
<v-divider />
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="primary" text @click="deleteDialog = false"
>{{ lang.cancel }}</v-btn
>
<v-btn color="primary" text @click="deleteKey()">{{ lang.delete }}</v-btn>
<v-btn color="primary" text @click="deleteDialog = false">
{{ lang.cancel }}
</v-btn>
<v-btn color="primary" text @click="deleteKey()">
{{ lang.delete }}
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
@ -84,8 +86,12 @@
<v-divider />
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="primary" text @click="editDialog = false">{{ lang.cancel }}</v-btn>
<v-btn color="primary" text @click="updateKey()">{{ lang.change }}</v-btn>
<v-btn color="primary" text @click="editDialog = false">
{{ lang.cancel }}
</v-btn>
<v-btn color="primary" text @click="updateKey()">
{{ lang.change }}
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
@ -111,8 +117,12 @@
<v-divider />
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="primary" text @click="addDialog = false">{{ lang.cancel }}</v-btn>
<v-btn color="primary" text @click="createKey()">{{ lang.create }}</v-btn>
<v-btn color="primary" text @click="addDialog = false">
{{ lang.cancel }}
</v-btn>
<v-btn color="primary" text @click="createKey()">
{{ lang.create }}
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
@ -120,17 +130,10 @@
</template>
<script>
import language from "~/components/Settings/language.vue";
export default {
computed: {
roundTweak() {
return this.$store.state.tweaks.roundTweak;
},
},
data() {
return {
lang: { mods: { general: { language: "" } } },
lang: {},
keys: [],
selectedKey: null,
@ -140,10 +143,15 @@ export default {
addDialog: false,
};
},
computed: {
roundTweak() {
return this.$store.state.tweaks.roundTweak;
},
},
mounted() {
this.syncRegistry();
const lang = this.$lang();
this.lang = lang.mods.general;
this.lang = lang.mods.developer;
},
methods: {

View file

@ -20,18 +20,16 @@ export default {
components: {
language,
},
data() {
return {
lang: {},
};
},
computed: {
roundTweak() {
return this.$store.state.tweaks.roundTweak;
},
},
data() {
return {
lang: { mods: { general: { language: "" } } },
};
},
mounted() {
const lang = this.$lang();
this.lang = lang.mods.general;