Complete dashboard translations & small UI improvements (#69)

* fix dropdown action Estimate Dashboard and fix translating full Dasboard page

* Update app.php

* fix locale in app.php config

* Wizard install with translation, customer portal with translation, and fixing hardcoding strings to get translation

* fixes asked to review

* fixes pint

---------

Co-authored-by: Max <contact@agencetwogether.fr>
Co-authored-by: Darko Gjorgjijoski <5760249+gdarko@users.noreply.github.com>
This commit is contained in:
agencetwogether
2024-06-05 12:07:46 +02:00
committed by GitHub
parent 3259173066
commit 3b61440e1f
89 changed files with 925 additions and 213 deletions

View File

@@ -129,7 +129,7 @@
:invalid="v.status.$error"
:placeholder="$t('recurring_invoices.select_a_status')"
value-prop="value"
label="value"
label="key"
/>
</BaseInputGroup>
@@ -186,6 +186,7 @@ import { useDebounceFn } from '@vueuse/core'
import { useRecurringInvoiceStore } from '@/scripts/admin/stores/recurring-invoice'
import { computed, onMounted, reactive, ref, watch } from 'vue'
import { useRoute } from 'vue-router'
import { useI18n } from 'vue-i18n'
import ExchangeRateConverter from '@/scripts/admin/components/estimate-invoice-common/ExchangeRateConverter.vue'
@@ -207,13 +208,14 @@ const props = defineProps({
const route = useRoute()
const recurringInvoiceStore = useRecurringInvoiceStore()
const globalStore = useGlobalStore()
const { t } = useI18n()
const isLoadingNextDate = ref(false)
const limits = reactive([
{ label: 'None', value: 'NONE' },
{ label: 'Date', value: 'DATE' },
{ label: 'Count', value: 'COUNT' },
{ label: t('recurring_invoices.limit.none'), value: 'NONE' },
{ label: t('recurring_invoices.limit.date'), value: 'DATE' },
{ label: t('recurring_invoices.limit.count'), value: 'COUNT' },
])
const isCustomFrequency = computed(() => {
@@ -226,9 +228,17 @@ const isCustomFrequency = computed(() => {
const getStatusOptions = computed(() => {
if (props.isEdit) {
return globalStore.config.recurring_invoice_status.update_status
return globalStore.config.recurring_invoice_status.update_status.map((item) => {
return Object.assign({}, item, {
key: t(item.key),
})
})
}
return globalStore.config.recurring_invoice_status.create_status
return globalStore.config.recurring_invoice_status.create_status.map((item) => {
return Object.assign({}, item, {
key: t(item.key),
})
})
})
watch(