Skip to content

Commit 4464d71

Browse files
committed
Translation and plural changes
1 parent 631239e commit 4464d71

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

resources/js/components/DetailField.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<template #value>
44
<div class="w-1/4 py-4">
55
<slot>
6-
<h4 class="font-normal text-80" v-text="field.singularLabel"></h4>
6+
<h4 class="font-normal text-80" v-text="field.singular ? field.singularLabel : field.pluralLabel"></h4>
77
</slot>
88
</div>
99

resources/js/components/FormField.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
class="shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 inline-flex items-center justify-center h-9 px-3 shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 mr-3"
3939
@click="addItem()"
4040
>
41-
Add new {{ field.singularLabel.toLowerCase() }}
41+
{{ __("Add") }} {{ field.singularLabel.toLowerCase() }}
4242
</button>
4343
</div>
4444
</div>

0 commit comments

Comments
 (0)