fix: translate empty text label correctly

This commit is contained in:
Shariq Ansari 2024-05-16 11:16:34 +05:30
parent 06dcedf56c
commit c09b4f6ae6
8 changed files with 8 additions and 8 deletions

View File

@ -45,7 +45,7 @@
class="flex flex-col items-center gap-3 text-xl font-medium text-gray-500"
>
<PhoneIcon class="h-10 w-10" />
<span>{{ __('No Logs Found') }}</span>
<span>{{ __('No {0} Found', [__('Logs')]) }}</span>
</div>
</div>
<CallLogModal

View File

@ -51,7 +51,7 @@
class="flex flex-col items-center gap-3 text-xl font-medium text-gray-500"
>
<ContactsIcon class="h-10 w-10" />
<span>{{ __('No Contacts Found') }}</span>
<span>{{ __('No {0} Found', [__('Contacts')]) }}</span>
<Button :label="__('Create')" @click="showContactModal = true">
<template #prefix><FeatherIcon name="plus" class="h-4" /></template>
</Button>

View File

@ -48,7 +48,7 @@
class="flex flex-col items-center gap-3 text-xl font-medium text-gray-500"
>
<DealsIcon class="h-10 w-10" />
<span>{{ __('No Deals Found') }}</span>
<span>{{ __('No {0} Found', [__('Deals')]) }}</span>
<Button :label="__('Create')" @click="showDealModal = true">
<template #prefix><FeatherIcon name="plus" class="h-4" /></template>
</Button>

View File

@ -52,7 +52,7 @@
class="flex flex-col items-center gap-3 text-xl font-medium text-gray-500"
>
<EmailIcon class="h-10 w-10" />
<span>{{ __('No Email Templates Found') }}</span>
<span>{{ __('No {0} Found', [__('Email Templates')]) }}</span>
<Button :label="__('Create')" @click="showEmailTemplateModal = true">
<template #prefix><FeatherIcon name="plus" class="h-4" /></template>
</Button>

View File

@ -49,7 +49,7 @@
class="flex flex-col items-center gap-3 text-xl font-medium text-gray-500"
>
<LeadsIcon class="h-10 w-10" />
<span>{{ __('No Leads Found') }}</span>
<span>{{ __('No {0} Found', [__('Leads')]) }}</span>
<Button :label="__('Create')" @click="showLeadModal = true">
<template #prefix><FeatherIcon name="plus" class="h-4" /></template>
</Button>

View File

@ -88,7 +88,7 @@
class="flex flex-col items-center gap-3 text-xl font-medium text-gray-500"
>
<NoteIcon class="h-10 w-10" />
<span>{{ __('No Notes Found') }}</span>
<span>{{ __('No {0} Found', [__('Notes')]) }}</span>
<Button :label="__('Create')" @click="createNote">
<template #prefix><FeatherIcon name="plus" class="h-4" /></template>
</Button>

View File

@ -51,7 +51,7 @@
class="flex flex-col items-center gap-3 text-xl font-medium text-gray-500"
>
<OrganizationsIcon class="h-10 w-10" />
<span>{{ __('No Organizations Found') }}</span>
<span>{{ __('No {0} Found', [__('Organizations')]) }}</span>
<Button :label="__('Create')" @click="showOrganizationModal = true">
<template #prefix><FeatherIcon name="plus" class="h-4" /></template>
</Button>

View File

@ -45,7 +45,7 @@
class="flex flex-col items-center gap-3 text-xl font-medium text-gray-500"
>
<EmailIcon class="h-10 w-10" />
<span>{{ __('No Tasks Found') }}</span>
<span>{{ __('No {0} Found', [__('Tasks')]) }}</span>
<Button :label="__('Create')" @click="showTaskModal = true">
<template #prefix><FeatherIcon name="plus" class="h-4" /></template>
</Button>