get language text for vue component
This commit is contained in:
parent
e476f300be
commit
4f21c14bf9
@ -96,7 +96,7 @@ class SelectContactCard extends Component
|
|||||||
}
|
}
|
||||||
|
|
||||||
#todo 3rd part apps
|
#todo 3rd part apps
|
||||||
$this->placeholder = trans('general.placeholder.contact_search', ['type' => $this->type]);
|
$this->placeholder = trans('general.placeholder.contact_search', ['type' => trans_choice('general.' . Str::plural($this->type, 2), 1)]);
|
||||||
|
|
||||||
return view('components.select-contact-card');
|
return view('components.select-contact-card');
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,11 @@ export default {
|
|||||||
name: 'akaunting-dropzone-file-upload',
|
name: 'akaunting-dropzone-file-upload',
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
|
textDropFile: {
|
||||||
|
type: String,
|
||||||
|
default: 'Drop files here to upload',
|
||||||
|
description: 'Drop file text'
|
||||||
|
},
|
||||||
textChooseFile: {
|
textChooseFile: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'Choose File',
|
default: 'Choose File',
|
||||||
@ -100,6 +105,7 @@ export default {
|
|||||||
thumbnailHeight: null,
|
thumbnailHeight: null,
|
||||||
previewsContainer: preview,
|
previewsContainer: preview,
|
||||||
previewTemplate: preview.innerHTML,
|
previewTemplate: preview.innerHTML,
|
||||||
|
dictDefaultMessage: this.textDropFile,
|
||||||
autoProcessQueue: false,
|
autoProcessQueue: false,
|
||||||
init: function () {
|
init: function () {
|
||||||
this.on('addedfile', function (file) {
|
this.on('addedfile', function (file) {
|
||||||
|
@ -146,7 +146,7 @@ export default {
|
|||||||
default: 'Add an item',
|
default: 'Add an item',
|
||||||
description: ""
|
description: ""
|
||||||
},
|
},
|
||||||
createNewItemText:{
|
createNewItemText: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'Create a new item',
|
default: 'Create a new item',
|
||||||
description: ""
|
description: ""
|
||||||
|
@ -192,8 +192,10 @@ return [
|
|||||||
'add_new' => 'Add New :field',
|
'add_new' => 'Add New :field',
|
||||||
'edit' => 'Edit :field',
|
'edit' => 'Edit :field',
|
||||||
'contact_edit' => 'Edit :contact_name :field',
|
'contact_edit' => 'Edit :contact_name :field',
|
||||||
|
'drop_file' => 'Drop files here to upload',
|
||||||
'choose' => 'Choose :field',
|
'choose' => 'Choose :field',
|
||||||
'choose_different' => 'Choose a different :field',
|
'choose_different' => 'Choose a different :field',
|
||||||
|
'choose_file' => 'Choose File',
|
||||||
'no_file_selected' => 'No file selected...',
|
'no_file_selected' => 'No file selected...',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@ -7,4 +7,6 @@
|
|||||||
:dynamic-currency="currency"
|
:dynamic-currency="currency"
|
||||||
:items="{{ json_encode($items) }}"
|
:items="{{ json_encode($items) }}"
|
||||||
@item="onSelectedItem($event)"
|
@item="onSelectedItem($event)"
|
||||||
|
add-item-text="{{ trans('general.form.add_an', ['field' => trans_choice('general.items', 1)]) }}"
|
||||||
|
create-new-item-text="{{ trans('general.title.create', ['type' => trans_choice('general.items', 1)]) }}"
|
||||||
></akaunting-item-button>
|
></akaunting-item-button>
|
||||||
|
@ -9,6 +9,9 @@
|
|||||||
|
|
||||||
<div class="input-group input-group-merge">
|
<div class="input-group input-group-merge">
|
||||||
<akaunting-dropzone-file-upload
|
<akaunting-dropzone-file-upload
|
||||||
|
text-drop-file="{{ trans('general.drop_file') }}"
|
||||||
|
text-choose-file="{{ trans('general.choose_file') }}"
|
||||||
|
|
||||||
@if (!empty($attributes['dropzone-class']))
|
@if (!empty($attributes['dropzone-class']))
|
||||||
class="{{ $attributes['dropzone-class'] }}"
|
class="{{ $attributes['dropzone-class'] }}"
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user