refactor: handle translation externally

This commit is contained in:
Shivam Mishra
2023-10-10 19:18:34 +05:30
parent 86ea2bbbe3
commit 047f1f6bc3
2 changed files with 7 additions and 4 deletions
@@ -40,6 +40,7 @@
<bubble-reply-to
v-if="inReplyToMessageId"
:content="inReplyTo.content"
:default-empty-message="$t('CONVERSATION.REPLY_MESSAGE_NOT_FOUND')"
@click="navigateToMessage"
/>
<bubble-text
@@ -2,16 +2,18 @@
import { computed } from 'vue';
import { extractTextFromMarkdown } from 'dashboard/helper/editorHelper';
const { content } = defineProps({
const props = defineProps({
content: {
type: String,
default: '',
},
defaultEmptyMessage: {
type: String,
required: true,
},
});
const cleanedContent = computed(() => extractTextFromMarkdown(content));
const defaultEmptyMessage = this.$t('CONVERSATION.REPLY_MESSAGE_NOT_FOUND');
const cleanedContent = computed(() => extractTextFromMarkdown(props.content));
</script>
<template>