mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-20 14:56:17 -04:00
feat(i18n): add tooltip and favoriteButton i18n (#756)
This commit is contained in:
parent
0fe9a20329
commit
a1037cf8f1
3 changed files with 8 additions and 4 deletions
|
@ -7,6 +7,7 @@ home:
|
||||||
toggleMenu: 'Toggle menu'
|
toggleMenu: 'Toggle menu'
|
||||||
home: Home
|
home: Home
|
||||||
uiLib: 'UI Lib'
|
uiLib: 'UI Lib'
|
||||||
|
support: 'Support IT Tools development'
|
||||||
buyMeACoffee: 'Buy me a coffee'
|
buyMeACoffee: 'Buy me a coffee'
|
||||||
follow:
|
follow:
|
||||||
title: 'You like it-tools?'
|
title: 'You like it-tools?'
|
||||||
|
@ -48,6 +49,9 @@ about:
|
||||||
sorry: 'Sorry, this page does not seem to exist'
|
sorry: 'Sorry, this page does not seem to exist'
|
||||||
maybe: 'Maybe the cache is doing tricky things, try force-refreshing?'
|
maybe: 'Maybe the cache is doing tricky things, try force-refreshing?'
|
||||||
backHome: 'Back home'
|
backHome: 'Back home'
|
||||||
|
favoriteButton:
|
||||||
|
remove: 'Remove from favorites'
|
||||||
|
add: 'Add to favorites'
|
||||||
toolCard:
|
toolCard:
|
||||||
new: New
|
new: New
|
||||||
search:
|
search:
|
||||||
|
|
|
@ -24,7 +24,7 @@ function toggleFavorite(event: MouseEvent) {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<c-tooltip :tooltip="isFavorite ? 'Remove from favorites' : 'Add to favorites' ">
|
<c-tooltip :tooltip="isFavorite ? $t('favoriteButton.remove') : $t('favoriteButton.add') ">
|
||||||
<c-button
|
<c-button
|
||||||
variant="text"
|
variant="text"
|
||||||
circle
|
circle
|
||||||
|
|
|
@ -100,13 +100,13 @@ const tools = computed<ToolCategory[]>(() => [
|
||||||
<NIcon size="25" :component="Menu2" />
|
<NIcon size="25" :component="Menu2" />
|
||||||
</c-button>
|
</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')">
|
<c-button to="/" circle variant="text" :aria-label="$t('home.home')">
|
||||||
<NIcon size="25" :component="Home2" />
|
<NIcon size="25" :component="Home2" />
|
||||||
</c-button>
|
</c-button>
|
||||||
</c-tooltip>
|
</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')">
|
<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 />
|
<icon-mdi:brush-variant text-20px />
|
||||||
</c-button>
|
</c-button>
|
||||||
|
@ -120,7 +120,7 @@ const tools = computed<ToolCategory[]>(() => [
|
||||||
<NavbarButtons v-if="!styleStore.isSmallScreen" />
|
<NavbarButtons v-if="!styleStore.isSmallScreen" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<c-tooltip position="bottom" tooltip="Support IT Tools development">
|
<c-tooltip position="bottom" :tooltip="$t('home.support')">
|
||||||
<c-button
|
<c-button
|
||||||
round
|
round
|
||||||
href="https://www.buymeacoffee.com/cthmsst"
|
href="https://www.buymeacoffee.com/cthmsst"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue