fix: added translation in SectionFields & Section Component

This commit is contained in:
Shariq Ansari 2024-04-15 19:23:05 +05:30
parent c1b67dec9c
commit bebe929ec6
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
class="h-4 text-gray-900 transition-all duration-300 ease-in-out"
:class="{ 'rotate-90': opened }"
/>
{{ label || 'Untitled' }}
{{ __(label) || __('Untitled') }}
</div>
<slot name="actions"></slot>
</div>

View File

@ -7,7 +7,7 @@
class="flex items-center gap-2 px-3 leading-5 first:mt-3"
>
<div class="w-[106px] shrink-0 text-sm text-gray-600">
{{ field.label }}
{{ __(field.label) }}
<span class="text-red-500">{{ field.reqd ? ' *' : '' }}</span>
</div>
<div
@ -17,7 +17,7 @@
v-if="field.read_only && field.type !== 'checkbox'"
class="flex h-7 cursor-pointer items-center px-2 py-1 text-gray-600"
>
<Tooltip :text="field.tooltip">
<Tooltip :text="__(field.tooltip)">
<div>{{ data[field.name] }}</div>
</Tooltip>
</div>