0
0
Fork 0

move translations

This commit is contained in:
William Buezas 2024-04-29 17:39:37 -03:00
parent 1b619055eb
commit ccac3a54f9
3 changed files with 40 additions and 27 deletions

View File

@ -39,25 +39,25 @@ const columns = computed(() => [
field: 'itemFk', field: 'itemFk',
}, },
{ {
label: t('Date'), label: t('itemDiary.date'),
name: 'date', name: 'date',
field: 'shipped', field: 'shipped',
align: 'left', align: 'left',
}, },
{ {
label: t('Id'), label: t('itemDiary.id'),
name: 'id', name: 'id',
align: 'left', align: 'left',
}, },
{ {
label: t('State'), label: t('itemDiary.state'),
field: 'stateName', field: 'stateName',
name: 'state', name: 'state',
align: 'left', align: 'left',
format: (val) => dashIfEmpty(val), format: (val) => dashIfEmpty(val),
}, },
{ {
label: t('Reference'), label: t('itemDiary.reference'),
field: 'reference', field: 'reference',
name: 'reference', name: 'reference',
align: 'left', align: 'left',
@ -65,27 +65,27 @@ const columns = computed(() => [
}, },
{ {
label: t('Client'), label: t('itemDiary.client'),
name: 'client', name: 'client',
align: 'left', align: 'left',
format: (val) => dashIfEmpty(val), format: (val) => dashIfEmpty(val),
}, },
{ {
label: t('In'), label: t('itemDiary.in'),
field: 'invalue', field: 'invalue',
name: 'in', name: 'in',
align: 'left', align: 'left',
format: (val) => dashIfEmpty(val), format: (val) => dashIfEmpty(val),
}, },
{ {
label: t('Out'), label: t('itemDiary.out'),
field: 'out', field: 'out',
name: 'out', name: 'out',
align: 'left', align: 'left',
format: (val) => dashIfEmpty(val), format: (val) => dashIfEmpty(val),
}, },
{ {
label: t('Balance'), label: t('itemDiary.balance'),
name: 'balance', name: 'balance',
align: 'left', align: 'left',
}, },
@ -144,7 +144,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
<QToolbar class="justify-end"> <QToolbar class="justify-end">
<div id="st-data" class="row"> <div id="st-data" class="row">
<VnSelect <VnSelect
:label="t('Warehouse')" :label="t('itemDiary.warehouse')"
:options="warehousesOptions" :options="warehousesOptions"
hide-selected hide-selected
option-label="name" option-label="name"
@ -155,14 +155,14 @@ onUnmounted(() => (stateStore.rightDrawer = false));
class="q-mr-lg" class="q-mr-lg"
/> />
<QCheckbox <QCheckbox
:label="t(`Show what's before the inventory`)" :label="t('itemDiary.showBefore')"
v-model="showWhatsBeforeInventory" v-model="showWhatsBeforeInventory"
@update:model-value="fetchItemBalances" @update:model-value="fetchItemBalances"
class="q-mr-lg" class="q-mr-lg"
/> />
<VnInputDate <VnInputDate
v-if="showWhatsBeforeInventory" v-if="showWhatsBeforeInventory"
:label="t('Since')" :label="t('itemDiary.since')"
dense dense
v-model="itemsBalanceFilter.where.date" v-model="itemsBalanceFilter.where.date"
@update:model-value="fetchItemBalances" @update:model-value="fetchItemBalances"
@ -188,7 +188,9 @@ onUnmounted(() => (stateStore.rightDrawer = false));
icon="vn:claims" icon="vn:claims"
dense dense
> >
<QTooltip> {{ t('Claim') }}: {{ row.claimFk }} </QTooltip> <QTooltip>
{{ t('itemDiary.claim') }}: {{ row.claimFk }}
</QTooltip>
</QBtn> </QBtn>
</QTd> </QTd>
</template> </template>
@ -273,18 +275,3 @@ onUnmounted(() => (stateStore.rightDrawer = false));
color: $positive; color: $positive;
} }
</style> </style>
<i18n>
es:
Date: Fecha
Id: Id
State: Estado
Reference: Referencia
Client: Cliente
In: Entrada
Out: Salida
Balance: Balance
Claim: Reclamación
Show what's before the inventory: Mostrar lo anterior al inventario
Since: Desde
</i18n>

View File

@ -0,0 +1,13 @@
itemDiary:
date: Date
id: Id
state: State
reference: Reference
client: Client
in: In
out: Out
balance: Balance
claim: Claim
showBefore: Show what's before the inventory
since: Since
warehouse: Warehouse

View File

@ -0,0 +1,13 @@
itemDiary:
date: Fecha
id: Id
state: Estado
reference: Referencia
client: Cliente
in: Entrada
out: Salida
balance: Balance
claim: Reclamación
showBefore: Mostrar lo anterior al inventario
since: Desde
warehouse: Almacén