Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
fix: #523 lang import
Browse files Browse the repository at this point in the history
  • Loading branch information
PickleNik committed Aug 27, 2022
1 parent b5892bc commit 1ff340c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 24 deletions.
42 changes: 25 additions & 17 deletions NUXT/pages/mods/developer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -111,26 +117,23 @@
<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>
</div>
</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,
Expand All @@ -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: {
Expand Down
12 changes: 5 additions & 7 deletions NUXT/pages/mods/general.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1ff340c

Please sign in to comment.