+
- Close
+ {{ $t('common.close') }}
diff --git a/components/dashboard/links/Index.vue b/components/dashboard/links/Index.vue
index b0a56eb..fd16812 100644
--- a/components/dashboard/links/Index.vue
+++ b/components/dashboard/links/Index.vue
@@ -80,15 +80,15 @@ function updateLinkList(link, type) {
v-if="!isLoading && listComplete"
class="flex items-center justify-center text-sm"
>
- No more links
+ {{ $t('links.no_more') }}
- Loading links failed,
+ {{ $t('links.load_failed') }}
diff --git a/components/dashboard/links/Link.vue b/components/dashboard/links/Link.vue
index e59f6a4..132726a 100644
--- a/components/dashboard/links/Link.vue
+++ b/components/dashboard/links/Link.vue
@@ -13,6 +13,7 @@ const props = defineProps({
})
const emit = defineEmits(['update:link'])
+const { t } = useI18n()
const editPopoverOpen = ref(false)
const { host, origin } = location
@@ -31,6 +32,11 @@ function updateLink(link, type) {
emit('update:link', link, type)
editPopoverOpen.value = false
}
+
+function copyLink() {
+ copy(shortLink)
+ toast(t('links.copy_success'))
+}
@@ -69,7 +75,7 @@ function updateLink(link, type) {
@@ -134,7 +140,7 @@ function updateLink(link, type) {