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

@@ -231,7 +231,7 @@
v$.currentCustomer.confirm_password.$errors[0].$message
"
:content-loading="isFetchingInitialData"
label="Confirm Password"
:label="$t('customers.confirm_password')"
>
<BaseInput
v-model.trim="customerStore.currentCustomer.confirm_password"

View File

@@ -128,17 +128,19 @@ import { useCustomerStore } from '@/scripts/admin/stores/customer'
import { useRoute } from 'vue-router'
import { useCompanyStore } from '@/scripts/admin/stores/company'
import ChartPlaceholder from './CustomerChartPlaceholder.vue'
import { useI18n } from 'vue-i18n'
const companyStore = useCompanyStore()
const customerStore = useCustomerStore()
const utils = inject('utils')
const { t } = useI18n()
const route = useRoute()
let isLoading = ref(false)
let chartData = reactive({})
let data = reactive({})
let years = reactive(['This year', 'Previous year'])
let years = reactive([{label: t('dateRange.this_year'), value: 'This year'}, {label: t('dateRange.previous_year'), value: 'Previous year'}])
let selectedYear = ref('This year')
const getChartExpenses = computed(() => {

View File

@@ -7,17 +7,20 @@
<BaseDescriptionList>
<BaseDescriptionListItem
v-if="selectedViewCustomer.name"
:content-loading="contentLoading"
:label="$t('customers.display_name')"
:value="selectedViewCustomer?.name"
/>
<BaseDescriptionListItem
v-if="selectedViewCustomer.contact_name"
:content-loading="contentLoading"
:label="$t('customers.primary_contact_name')"
:value="selectedViewCustomer?.contact_name"
/>
<BaseDescriptionListItem
v-if="selectedViewCustomer.email"
:content-loading="contentLoading"
:label="$t('customers.email')"
:value="selectedViewCustomer?.email"
@@ -36,11 +39,13 @@
/>
<BaseDescriptionListItem
v-if="selectedViewCustomer.phone"
:content-loading="contentLoading"
:label="$t('customers.phone_number')"
:value="selectedViewCustomer?.phone"
/>
<BaseDescriptionListItem
v-if="selectedViewCustomer.website"
:content-loading="contentLoading"
:label="$t('customers.website')"
:value="selectedViewCustomer?.website"
@@ -89,8 +94,8 @@
v-if="field.type === 'Switch'"
class="text-sm font-bold leading-5 text-black non-italic"
>
<span v-if="field.default_answer === 1"> Yes </span>
<span v-else> No </span>
<span v-if="field.default_answer === 1"> {{ $t('general.yes') }} </span>
<span v-else> {{ $t('general.no') }} </span>
</p>
<p v-else class="text-sm font-bold leading-5 text-black non-italic">
{{ field.default_answer }}