feat: add conditional internationalization for sub-menu labels
This commit is contained in:
parent
9e051f132a
commit
04f2584e2a
1 changed files with 5 additions and 19 deletions
|
|
@ -338,7 +338,11 @@ onMounted(async () => {
|
|||
:id="`sub-menu-${sub.label}`"
|
||||
>
|
||||
<span style="white-space: nowrap">
|
||||
{{ $t(`${menu.label}.${sub.label}`) }}
|
||||
{{
|
||||
sub.noI18n
|
||||
? sub.label
|
||||
: $t(`${menu.label}.${sub.label}`)
|
||||
}}
|
||||
</span>
|
||||
</q-item>
|
||||
</template>
|
||||
|
|
@ -376,24 +380,6 @@ onMounted(async () => {
|
|||
</template>
|
||||
</q-list>
|
||||
</q-expansion-item>
|
||||
|
||||
<!-- Manual -->
|
||||
<!-- <q-expansion-item
|
||||
v-if="i === menuData.length - 1"
|
||||
id="menu.manual"
|
||||
for="menu.manual"
|
||||
dense
|
||||
expand-icon-class="no-padding"
|
||||
:hide-expand-icon="mini"
|
||||
:header-class="{
|
||||
row: true,
|
||||
'no-padding justify-center': mini,
|
||||
'active-menu text-weight-bold': menuActive[i],
|
||||
'text-weight-medium': !menu.disabled,
|
||||
}"
|
||||
>
|
||||
asd
|
||||
</q-expansion-item> -->
|
||||
</template>
|
||||
|
||||
<!-- <q-item
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue