Collection of handy online tools for developers, with great UX.
TypeScript converterdeveloper-productivitydeveloper-toolsfrontendjavascriptproductivitytooltoolstypescriptvuejswebsite
feat(i18n): add tooltip and favoriteButton i18n (#756)
lzb16a1037cf8f12c
diff --git a/locales/en.yml b/locales/en.ymlindex dc6397a5..ef5c4beb 100644--- a/locales/en.yml+++ b/locales/en.yml@@ -7,6 +7,7 @@ home:toggleMenu: 'Toggle menu'home: HomeuiLib: 'UI Lib'+ support: 'Support IT Tools development'buyMeACoffee: 'Buy me a coffee'follow:title: 'You like it-tools?'@@ -48,6 +49,9 @@ about:sorry: 'Sorry, this page does not seem to exist'maybe: 'Maybe the cache is doing tricky things, try force-refreshing?'backHome: 'Back home'+favoriteButton:+ remove: 'Remove from favorites'+ add: 'Add to favorites'toolCard:new: Newsearch:diff --git a/src/components/FavoriteButton.vue b/src/components/FavoriteButton.vueindex c3f0aaad..e43ed8ab 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-buttonvariant="text"circlediff --git a/src/layouts/base.layout.vue b/src/layouts/base.layout.vueindex 950b01d4..62ac5113 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-buttonroundhref="https://www.buymeacoffee.com/cthmsst"