aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar lzb16 <767831662@qq.com> 2023-11-16 16:20:42 +0800
committerGravatar GitHub <noreply@github.com> 2023-11-16 08:20:42 +0000
commita1037cf8f12ce75a66033ced508774436faa3835 (patch)
treece05f51e8fd480d6ecbd62eac1557c6e58306395 /src
parent0fe9a2032982ce4de5b0b6570cbcff91b1514a49 (diff)
downloadit-tools-a1037cf8f12ce75a66033ced508774436faa3835.tar.gz
it-tools-a1037cf8f12ce75a66033ced508774436faa3835.tar.zst
it-tools-a1037cf8f12ce75a66033ced508774436faa3835.zip
feat(i18n): add tooltip and favoriteButton i18n (#756)
Diffstat (limited to 'src')
-rw-r--r--src/components/FavoriteButton.vue2
-rw-r--r--src/layouts/base.layout.vue6
2 files changed, 4 insertions, 4 deletions
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
diff --git a/src/layouts/base.layout.vue b/src/layouts/base.layout.vue
index 950b01d..62ac511 100644
--- a/src/layouts/base.layout.vue
+++ b/src/layouts/base.layout.vue
@@ -100,13 +100,13 @@ const tools = computed<ToolCategory[]>(() => [
<NIcon size="25" :component="Menu2" />
</c-button>
- <c-tooltip tooltip="Home" position="bottom">
+ <c-tooltip :tooltip="$t('home.home')" position="bottom">
<c-button to="/" circle variant="text" :aria-label="$t('home.home')">
<NIcon size="25" :component="Home2" />
</c-button>
</c-tooltip>
- <c-tooltip tooltip="UI Lib" position="bottom">
+ <c-tooltip :tooltip="$t('home.uiLib')" position="bottom">
<c-button v-if="config.app.env === 'development'" to="/c-lib" circle variant="text" :aria-label="$t('home.uiLib')">
<icon-mdi:brush-variant text-20px />
</c-button>
@@ -120,7 +120,7 @@ const tools = computed<ToolCategory[]>(() => [
<NavbarButtons v-if="!styleStore.isSmallScreen" />
</div>
- <c-tooltip position="bottom" tooltip="Support IT Tools development">
+ <c-tooltip position="bottom" :tooltip="$t('home.support')">
<c-button
round
href="https://www.buymeacoffee.com/cthmsst"