Restructure translation files

This commit is contained in:
2024-10-25 13:05:51 +02:00
parent 10d6142fff
commit fedb821a72
39 changed files with 526 additions and 596 deletions

View File

@@ -14,10 +14,20 @@ const showOrderingDialog = ref()
<template>
<v-container max-width="1000">
<v-row v-if="accountStore.userAccount.id == null">
<v-col>
<v-alert
color="info"
closable
>
{{ $t('account.login.pleaseLoginToOrder') }}
</v-alert>
</v-col>
</v-row>
<v-row>
<v-col>
<card-view
:title="$t('basket')"
:title="$t('basket.basket')"
v-model="showOrderingDialog"
icon="mdi-cart"
>
@@ -28,13 +38,13 @@ const showOrderingDialog = ref()
<!-- Display empty state if card is empty -->
<v-empty-state v-else
icon="mdi-basket-off"
:title="$t('emptyBasketTitle')"
:text="$t('emptyBasketText')"
:title="$t('basket.emptyBasketTitle')"
:text="$t('basket.emptyBasketText')"
/>
</template>
<v-card-text class="text-right text-h5" v-if="basketStore.itemsInBasket.length > 0">
{{ $t('totalPrice') }}: {{ (basketStore.getTotalPrice).toFixed(2) }}
{{ $t('misc.totalPrice') }}: {{ (basketStore.getTotalPrice).toFixed(2) }}
</v-card-text>
@@ -46,7 +56,7 @@ const showOrderingDialog = ref()
color="green"
@click="showOrderingDialog = true"
>
{{ $t('orderNow') }}
{{ $t('order.takeOrder') }}
</outlined-button>
</template>
</card-view>

View File

@@ -36,7 +36,7 @@ async function doOrder() {
<template>
<action-dialog
:title="$t('ordering.ordering')"
:title="$t('order.ordering')"
icon="mdi-basket-check"
v-model="showDialog"
max-width="800"
@@ -44,7 +44,7 @@ async function doOrder() {
>
<v-list class="pa-0">
<v-list-subheader>
{{ $t('account.address', accountStore.userAccount.addresses.length) }}
{{ $t('account.userData.address', accountStore.userAccount.addresses.length) }}
</v-list-subheader>
<v-list-item>
@@ -62,7 +62,7 @@ async function doOrder() {
</v-list-item>
<v-list-subheader>
{{ $t('account.payment', accountStore.userAccount.payments.length) }}
{{ $t('account.userData.payment', accountStore.userAccount.payments.length) }}
</v-list-subheader>
<v-list-item>
@@ -86,7 +86,7 @@ async function doOrder() {
color="orange"
:disabled="orderingInProgress"
>
{{ $t('dialog.cancel') }}
{{ $t('misc.actions.cancel') }}
</outlined-button>
<outlined-button
@@ -95,7 +95,7 @@ async function doOrder() {
prepend-icon="mdi-send"
color="green"
>
{{ $t('ordering.takeOrder') }}
{{ $t('order.takeOrder') }}
</outlined-button>
</template>
</action-dialog>

View File

@@ -14,11 +14,11 @@ function removeFromBasket(basketItem: BasketItemModel) {
<v-table>
<thead>
<tr>
<th>{{ $t('band') }}</th>
<th>{{ $t('concert') }}</th>
<th class="text-center">{{ $t('quantity') }}</th>
<th class="text-right">{{ $t('product.productPrice') }}</th>
<th class="text-right">{{ $t('totalPrice') }}</th>
<th>{{ $t('band.band') }}</th>
<th>{{ $t('concert.concert') }}</th>
<th class="text-center">{{ $t('misc.quantity') }}</th>
<th class="text-right">{{ $t('misc.price') }}</th>
<th class="text-right">{{ $t('misc.totalPrice') }}</th>
<th></th>
</tr>
</thead>