From a1037cf8f12ce75a66033ced508774436faa3835 Mon Sep 17 00:00:00 2001
From: lzb16 <767831662@qq.com>
Date: Thu, 16 Nov 2023 16:20:42 +0800
Subject: feat(i18n): add tooltip and favoriteButton i18n (#756)

---
 src/components/FavoriteButton.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/FavoriteButton.vue')

diff --git a/src/components/FavoriteButton.vue b/src/components/FavoriteButton.vue
index c3f0aaa..e43ed8a 100644
--- a/src/components/FavoriteButton.vue
+++ b/src/components/FavoriteButton.vue
@@ -24,7 +24,7 @@ function toggleFavorite(event: MouseEvent) {
 </script>
 
 <template>
-  <c-tooltip :tooltip="isFavorite ? 'Remove from favorites' : 'Add to favorites' ">
+  <c-tooltip :tooltip="isFavorite ? $t('favoriteButton.remove') : $t('favoriteButton.add') ">
     <c-button
       variant="text"
       circle
-- 
cgit v1.2.3

