mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
Merge pull request #423 from TheZoker/add-more-translation
Add more translation
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import i18n from '../plugins/i18n';
|
||||
|
||||
export default {
|
||||
addClass(el, className) {
|
||||
if (el.classList) el.classList.add(className)
|
||||
@ -261,6 +263,36 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
getStatusTranslation(status) {
|
||||
switch (status) {
|
||||
case 'DRAFT':
|
||||
return i18n.t('general.draft')
|
||||
case 'PAID':
|
||||
return i18n.t('invoices.paid')
|
||||
case 'UNPAID':
|
||||
return i18n.t('invoices.unpaid')
|
||||
case 'SENT':
|
||||
return i18n.t('general.sent')
|
||||
case 'REJECTED':
|
||||
return i18n.t('estimates.rejected')
|
||||
case 'ACCEPTED':
|
||||
return i18n.t('estimates.accepted')
|
||||
case 'VIEWED':
|
||||
return i18n.t('invoices.viewed')
|
||||
case 'EXPIRED':
|
||||
return i18n.t('estimates.expired')
|
||||
case 'PARTIALLY PAID':
|
||||
return i18n.t('estimates.partially_paid')
|
||||
case 'OVERDUE':
|
||||
return i18n.t('invoices.overdue')
|
||||
case 'COMPLETED':
|
||||
return i18n.t('invoices.completed')
|
||||
case 'DUE':
|
||||
return i18n.t('general.due')
|
||||
default:
|
||||
return status
|
||||
}
|
||||
},
|
||||
compareVersion(v1, v2, options) {
|
||||
const lexicographical = options && options.lexicographical
|
||||
const zeroExtend = options && options.zeroExtend
|
||||
|
||||
Reference in New Issue
Block a user