Select Contact Card dynamic language text
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
</div>
|
||||
|
||||
<button type="button" class="btn btn-link" @click="onContactEdit">{{ editContactText.replace(':contact_name', contact.name) }}</button> •
|
||||
<button type="button" class="btn btn-link" @click="onContactList">{{ chooseDiffentContactText }}</button>
|
||||
<button type="button" class="btn btn-link" @click="onContactList">{{ chooseDifferentContactText }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -224,7 +224,7 @@ export default {
|
||||
default: 'Tax number',
|
||||
description: ""
|
||||
},
|
||||
chooseDiffentContactText: {
|
||||
chooseDifferentContactText: {
|
||||
type: String,
|
||||
default: 'Choose a different customer',
|
||||
description: ""
|
||||
|
||||
@@ -185,7 +185,13 @@ return [
|
||||
'field' => '- Select :field -',
|
||||
'file' => 'Select File',
|
||||
],
|
||||
'add' => 'Add a :field',
|
||||
'add_an' => 'Add an :field',
|
||||
'add_new' => 'Add New :field',
|
||||
'edit' => 'Edit :field',
|
||||
'contact_edit' => 'Edit :contact_name :field',
|
||||
'choose' => 'Choose :field',
|
||||
'choose_different' => 'Choose a different :field',
|
||||
'no_file_selected' => 'No file selected...',
|
||||
],
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
:contacts="$contacts"
|
||||
:search_route="$contactSearchRoute"
|
||||
:create_route="$contactCreateRoute"
|
||||
text-add-contact="{{ $textAddContact }}"
|
||||
text-create-new-contact="{{ $textCreateNewContact }}"
|
||||
text-edit-contact="{{ $textEditContact }}"
|
||||
text-contact-info="{{ $textContactInfo }}"
|
||||
text-choose-different-contact="{{ $textChooseDifferentContact }}"
|
||||
:text-add-contact="$textAddContact"
|
||||
:text-create-new-contact="$textCreateNewContact"
|
||||
:text-edit-contact="$textEditContact"
|
||||
:text-contact-info="$textContactInfo"
|
||||
:text-choose-different-contact="$textChooseDifferentContact"
|
||||
/>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
create-route="{{ $create_route }}"
|
||||
:contacts="{{ json_encode($contacts) }}"
|
||||
:selected="{{ json_encode($contact) }}"
|
||||
add-contact-text="{{ $textAddContact }}"
|
||||
create-new-contact-text="{{ $textCreateNewContact }}"
|
||||
edit-contact-text="{{ $textEditContact }}"
|
||||
contact-info-text="{{ $textContactInfo }}"
|
||||
add-contact-text="{{ is_array($textAddContact) ? trans($textAddContact[0], ['field' => trans_choice($textAddContact[1], 1)]) : trans($textAddContact) }}"
|
||||
create-new-contact-text="{{ is_array($textCreateNewContact) ? trans($textCreateNewContact[0], ['field' => trans_choice($textCreateNewContact[1], 1)]) : trans($textCreateNewContact) }}"
|
||||
edit-contact-text="{{ is_array($textEditContact) ? trans($textEditContact[0], ['field' => trans_choice($textEditContact[1], 1)]) : trans($textEditContact) }}"
|
||||
contact-info-text="{{ is_array($textContactInfo) ? trans($textContactInfo[0], ['field' => trans_choice($textContactInfo[1], 1)]) : trans($textContactInfo) }}"
|
||||
tax-number-text="{{ trans('general.tax_number') }}"
|
||||
choose-different-contact-text="{{ $textChooseDifferentContact }}"
|
||||
choose-different-contact-text="{{ is_array($textChooseDifferentContact) ? trans($textChooseDifferentContact[0], ['field' => trans_choice($textChooseDifferentContact[1], 1)]) : trans($textChooseDifferentContact) }}"
|
||||
:add-new="{{ json_encode([
|
||||
'status' => true,
|
||||
'text' => trans('general.add_new'),
|
||||
|
||||
Reference in New Issue
Block a user