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
|
||||
$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');
|
||||
}
|
||||
|
@ -49,6 +49,11 @@ export default {
|
||||
name: 'akaunting-dropzone-file-upload',
|
||||
|
||||
props: {
|
||||
textDropFile: {
|
||||
type: String,
|
||||
default: 'Drop files here to upload',
|
||||
description: 'Drop file text'
|
||||
},
|
||||
textChooseFile: {
|
||||
type: String,
|
||||
default: 'Choose File',
|
||||
@ -100,6 +105,7 @@ export default {
|
||||
thumbnailHeight: null,
|
||||
previewsContainer: preview,
|
||||
previewTemplate: preview.innerHTML,
|
||||
dictDefaultMessage: this.textDropFile,
|
||||
autoProcessQueue: false,
|
||||
init: function () {
|
||||
this.on('addedfile', function (file) {
|
||||
|
@ -146,7 +146,7 @@ export default {
|
||||
default: 'Add an item',
|
||||
description: ""
|
||||
},
|
||||
createNewItemText:{
|
||||
createNewItemText: {
|
||||
type: String,
|
||||
default: 'Create a new item',
|
||||
description: ""
|
||||
|
@ -192,8 +192,10 @@ return [
|
||||
'add_new' => 'Add New :field',
|
||||
'edit' => 'Edit :field',
|
||||
'contact_edit' => 'Edit :contact_name :field',
|
||||
'drop_file' => 'Drop files here to upload',
|
||||
'choose' => 'Choose :field',
|
||||
'choose_different' => 'Choose a different :field',
|
||||
'choose_file' => 'Choose File',
|
||||
'no_file_selected' => 'No file selected...',
|
||||
],
|
||||
|
||||
|
@ -7,4 +7,6 @@
|
||||
:dynamic-currency="currency"
|
||||
:items="{{ json_encode($items) }}"
|
||||
@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>
|
||||
|
@ -9,6 +9,9 @@
|
||||
|
||||
<div class="input-group input-group-merge">
|
||||
<akaunting-dropzone-file-upload
|
||||
text-drop-file="{{ trans('general.drop_file') }}"
|
||||
text-choose-file="{{ trans('general.choose_file') }}"
|
||||
|
||||
@if (!empty($attributes['dropzone-class']))
|
||||
class="{{ $attributes['dropzone-class'] }}"
|
||||
@endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user