Localization of ImageCropper component
This commit is contained in:
parent
205e38ffa9
commit
228e6681e3
3 changed files with 16 additions and 6 deletions
|
@ -26,12 +26,10 @@ const ImageCropper = {
|
|||
default: 'image/png, image/gif, image/jpeg, image/bmp, image/x-icon'
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
default: 'Crop picture'
|
||||
type: String
|
||||
},
|
||||
saveButtonLabel: {
|
||||
type: String,
|
||||
default: 'Save'
|
||||
type: String
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
@ -44,6 +42,14 @@ const ImageCropper = {
|
|||
components: {
|
||||
Modal
|
||||
},
|
||||
computed: {
|
||||
modalTitle () {
|
||||
return this.title || this.$t('image_cropper.crop_picture')
|
||||
},
|
||||
modalSaveButtonLabel () {
|
||||
return this.saveButtonLabel || this.$t('image_cropper.save')
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
destroy () {
|
||||
this.cropper.destroy()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue