mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-22 11:15:14 +00:00
fix: #523 lang import
This commit is contained in:
parent
b5892bca8a
commit
1ff340cd0a
2 changed files with 30 additions and 24 deletions
|
@ -61,10 +61,12 @@
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn color="primary" text @click="deleteDialog = false"
|
<v-btn color="primary" text @click="deleteDialog = false">
|
||||||
>{{ lang.cancel }}</v-btn
|
{{ lang.cancel }}
|
||||||
>
|
</v-btn>
|
||||||
<v-btn color="primary" text @click="deleteKey()">{{ lang.delete }}</v-btn>
|
<v-btn color="primary" text @click="deleteKey()">
|
||||||
|
{{ lang.delete }}
|
||||||
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
@ -84,8 +86,12 @@
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn color="primary" text @click="editDialog = false">{{ lang.cancel }}</v-btn>
|
<v-btn color="primary" text @click="editDialog = false">
|
||||||
<v-btn color="primary" text @click="updateKey()">{{ lang.change }}</v-btn>
|
{{ lang.cancel }}
|
||||||
|
</v-btn>
|
||||||
|
<v-btn color="primary" text @click="updateKey()">
|
||||||
|
{{ lang.change }}
|
||||||
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
@ -111,8 +117,12 @@
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn color="primary" text @click="addDialog = false">{{ lang.cancel }}</v-btn>
|
<v-btn color="primary" text @click="addDialog = false">
|
||||||
<v-btn color="primary" text @click="createKey()">{{ lang.create }}</v-btn>
|
{{ lang.cancel }}
|
||||||
|
</v-btn>
|
||||||
|
<v-btn color="primary" text @click="createKey()">
|
||||||
|
{{ lang.create }}
|
||||||
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
@ -120,17 +130,10 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import language from "~/components/Settings/language.vue";
|
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
|
||||||
roundTweak() {
|
|
||||||
return this.$store.state.tweaks.roundTweak;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
lang: { mods: { general: { language: "" } } },
|
lang: {},
|
||||||
keys: [],
|
keys: [],
|
||||||
|
|
||||||
selectedKey: null,
|
selectedKey: null,
|
||||||
|
@ -140,10 +143,15 @@ export default {
|
||||||
addDialog: false,
|
addDialog: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
roundTweak() {
|
||||||
|
return this.$store.state.tweaks.roundTweak;
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.syncRegistry();
|
this.syncRegistry();
|
||||||
const lang = this.$lang();
|
const lang = this.$lang();
|
||||||
this.lang = lang.mods.general;
|
this.lang = lang.mods.developer;
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -20,18 +20,16 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
language,
|
language,
|
||||||
},
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
lang: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
roundTweak() {
|
roundTweak() {
|
||||||
return this.$store.state.tweaks.roundTweak;
|
return this.$store.state.tweaks.roundTweak;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
lang: { mods: { general: { language: "" } } },
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
const lang = this.$lang();
|
const lang = this.$lang();
|
||||||
this.lang = lang.mods.general;
|
this.lang = lang.mods.general;
|
||||||
|
|
Loading…
Reference in a new issue