Commit 7b4bdb8b authored by dindigala's avatar dindigala
Browse files

refactor: fix translation to icons in image panel and added parameter to make default lang

parent 007d7e0b
Pipeline #194199 passed with stages
in 6 minutes and 25 seconds
......@@ -10,7 +10,10 @@
:manifests="manifests"
/>
<div class="row no-wrap justify-end col-xs-3">
<Language v-if="standalone" />
<Language
v-if="standalone"
:config="config"
/>
<Color :projectcolors="projectcolors" />
<Softwareinfo />
</div>
......
......@@ -39,6 +39,12 @@ import { fasLanguage } from '@quasar/extras/fontawesome-v5';
export default {
name: 'Language',
props: {
config: {
type: Object,
default: () => {},
},
},
data() {
return {
langs: [
......@@ -53,6 +59,9 @@ export default {
this.$i18n.locale = lang;
},
},
mounted() {
this.selectedLang = this.config.lang;
},
created() {
this.fasLanguage = fasLanguage;
},
......
......@@ -6,7 +6,7 @@
<nav>
<q-btn
v-for="(btn, idx) in buttons"
:id="btn.id"
:id="$t(btn.tooltip)"
:key="idx"
flat
round
......@@ -16,6 +16,7 @@
:title="$t(btn.tooltip)"
>
<q-icon
:id="btn.id"
size="xs"
:name="btn.svg"
/>
......
......@@ -106,6 +106,7 @@
}
],
"rtl": false,
"lang": "en-us",
"standalone": true
}
</script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment