{{ t('text', 'Translate') }}
{{ t('text', 'To translate individual parts of the text, select it before using the translate function.') }}
@@ -106,6 +106,10 @@ export default {
useIsMobileMixin,
],
props: {
+ show: {
+ type: Boolean,
+ default: false,
+ },
content: {
type: String,
default: '',
@@ -125,6 +129,9 @@ export default {
}
},
computed: {
+ isShow() {
+ return this.show
+ },
fromLanguages() {
const result = this.canDetect ? [detectLanguageEntry] : []
const set = new Set()
@@ -165,6 +172,9 @@ export default {
},
},
watch: {
+ content() {
+ this.input = this.content
+ },
input() {
this.result = null
this.error = null
@@ -246,6 +256,7 @@ export default {
resize: none;
box-sizing: border-box;
overflow-y: auto;
+ min-height: 62px;
max-height: 58vh;
}
}