diff --git a/src/components/TextareaCopyable.vue b/src/components/TextareaCopyable.vue index fa98aafd..a93eeccd 100644 --- a/src/components/TextareaCopyable.vue +++ b/src/components/TextareaCopyable.vue @@ -22,7 +22,7 @@ const props = withDefaults( followHeightOf: null, language: 'txt', copyPlacement: 'top-right', - copyMessage: t('copyClipboard.tooltip'), + copyMessage: 'Copy to clipboard', }, ); hljs.registerLanguage('sql', sqlHljs); @@ -37,7 +37,7 @@ const { value, language, followHeightOf, copyPlacement, copyMessage } = toRefs(p const { height } = followHeightOf.value ? useElementSize(followHeightOf) : { height: ref(null) }; const { copy, isJustCopied } = useCopy({ source: value, createToast: false }); -const tooltipText = computed(() => isJustCopied.value ? t('copyClipboard.success') : copyMessage.value); +const tooltipText = computed(() => isJustCopied.value ? $t('copyClipboard.success') : copyMessage.value);