Merge pull request #423 from TheZoker/add-more-translation

Add more translation
This commit is contained in:
Mohit Panjwani
2021-03-22 14:59:04 +05:30
committed by GitHub
23 changed files with 179 additions and 15 deletions

View File

@ -195,7 +195,7 @@
<template slot-scope="row">
<span>{{ $t('customers.contact_name') }}</span>
<span>
{{ row.contact_name ? row.contact_name : 'No Contact Name' }}
{{ row.contact_name ? row.contact_name : $t('customers.no_contact_name') }}
</span>
</template>
</sw-table-column>
@ -208,7 +208,7 @@
<template slot-scope="row">
<span>{{ $t('customers.phone') }}</span>
<span>
{{ row.phone ? row.phone : 'No Contact' }}
{{ row.phone ? row.phone : $t('customers.no_contact') }}
</span>
</template>
</sw-table-column>

View File

@ -65,9 +65,11 @@
:color="$utils.getBadgeStatusColor(row.status).color"
>
{{
row.status != 'PARTIALLY_PAID'
? row.status
: row.status.replace('_', ' ')
$utils.getStatusTranslation(
row.status != 'PARTIALLY_PAID'
? row.status
: row.status.replace('_', ' ')
)
}}
</sw-badge>
</template>

View File

@ -254,7 +254,7 @@
:color="$utils.getBadgeStatusColor(row.status).color"
class="px-3 py-1"
>
{{ row.status }}
{{ $utils.getStatusTranslation(row.status) }}
</sw-badge>
</template>
</sw-table-column>

View File

@ -172,7 +172,7 @@
:color="$utils.getBadgeStatusColor(estimate.status).color"
class="px-1 text-xs"
>
{{ estimate.status }}
{{ $utils.getStatusTranslation(estimate.status) }}
</sw-badge>
</div>

View File

@ -208,7 +208,7 @@
>
<template slot-scope="row">
<span>{{ $t('expenses.customer') }}</span>
<span> {{ row.user_name ? row.user_name : 'Not selected' }} </span>
<span> {{ row.user_name ? row.user_name : $t('expenses.not_selected') }} </span>
</template>
</sw-table-column>

View File

@ -241,7 +241,7 @@
:bg-color="$utils.getBadgeStatusColor(row.status).bgColor"
:color="$utils.getBadgeStatusColor(row.status).color"
>
{{ row.status.replace('_', ' ') }}
{{ $utils.getStatusTranslation(row.status.replace('_', ' ')) }}
</sw-badge>
</template>
</sw-table-column>
@ -258,7 +258,7 @@
:bg-color="$utils.getBadgeStatusColor(row.status).bgColor"
:color="$utils.getBadgeStatusColor(row.status).color"
>
{{ row.paid_status.replace('_', ' ') }}
{{ $utils.getStatusTranslation(row.paid_status.replace('_', ' ')) }}
</sw-badge>
</template>
</sw-table-column>

View File

@ -189,7 +189,7 @@
:font-size="$utils.getBadgeStatusColor(invoice.status).fontSize"
class="px-1 text-xs"
>
{{ invoice.status }}
{{ $utils.getStatusTranslation(invoice.status) }}
</sw-badge>
</div>

View File

@ -189,7 +189,7 @@
<span>{{ $t('items.unit') }}</span>
<span>
{{ row.unit_name ? row.unit_name : 'Not selected' }}
{{ row.unit_name ? row.unit_name : $t('items.not_selected') }}
</span>
</template>
</sw-table-column>

View File

@ -202,7 +202,7 @@
<template slot-scope="row">
<span>{{ $t('payments.payment_mode') }}</span>
<span>
{{ row.payment_mode ? row.payment_mode : 'Not selected' }}
{{ row.payment_mode ? row.payment_mode : $t('payments.not_selected') }}
</span>
</template>
</sw-table-column>
@ -216,7 +216,7 @@
<template slot-scope="row">
<span>{{ $t('invoices.invoice_number') }}</span>
<span>
{{ row.invoice_number ? row.invoice_number : 'No Invoice' }}
{{ row.invoice_number ? row.invoice_number : $t('payments.no_invoice') }}
</span>
</template>
</sw-table-column>