aboutsummaryrefslogtreecommitdiff
path: root/src/components/NavbarButtons.vue
diff options
context:
space:
mode:
authorGravatar 莫颓 <it_motui@163.com> 2023-10-23 15:14:34 +0800
committerGravatar GitHub <noreply@github.com> 2023-10-23 09:14:34 +0200
commit00562ed5e87a88a7038b4670f20e155c4f5b070d (patch)
tree6f2ede7dee5395acd859941fce4bb3f6553974c1 /src/components/NavbarButtons.vue
parent4365226d0168b023160eb96dfd412d88e5bb662d (diff)
downloadit-tools-00562ed5e87a88a7038b4670f20e155c4f5b070d.tar.gz
it-tools-00562ed5e87a88a7038b4670f20e155c4f5b070d.tar.zst
it-tools-00562ed5e87a88a7038b4670f20e155c4f5b070d.zip
feat(i18n): home page (#687)
(cherry picked from commit 9d39826078ceb929a5ca3b577f9f39449303c289)
Diffstat (limited to 'src/components/NavbarButtons.vue')
-rw-r--r--src/components/NavbarButtons.vue16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/components/NavbarButtons.vue b/src/components/NavbarButtons.vue
index 653afdd..cfc58cd 100644
--- a/src/components/NavbarButtons.vue
+++ b/src/components/NavbarButtons.vue
@@ -7,39 +7,39 @@ const { isDarkTheme } = toRefs(styleStore);
</script>
<template>
- <c-tooltip tooltip="Github repository" position="bottom">
+ <c-tooltip :tooltip="$t('home.nav.github')" position="bottom">
<c-button
circle
variant="text"
href="https://github.com/CorentinTh/it-tools"
target="_blank"
rel="noopener noreferrer"
- aria-label="IT-Tools' GitHub repository"
+ :aria-label="$t('home.nav.githubRepository')"
>
<n-icon size="25" :component="BrandGithub" />
</c-button>
</c-tooltip>
- <c-tooltip tooltip="Twitter account" position="bottom">
+ <c-tooltip :tooltip="$t('home.nav.twitter')" position="bottom">
<c-button
circle
variant="text"
href="https://twitter.com/ittoolsdottech"
rel="noopener"
target="_blank"
- aria-label="IT Tools' Twitter account"
+ :aria-label="$t('home.nav.twitterAccount')"
>
<n-icon size="25" :component="BrandTwitter" />
</c-button>
</c-tooltip>
- <c-tooltip tooltip="About IT-Tools" position="bottom">
- <c-button circle variant="text" to="/about" aria-label="About">
+ <c-tooltip :tooltip="$t('home.nav.about')" position="bottom">
+ <c-button circle variant="text" to="/about" :aria-label="$t('home.nav.aboutLabel')">
<n-icon size="25" :component="InfoCircle" />
</c-button>
</c-tooltip>
- <c-tooltip :tooltip="isDarkTheme ? 'Light mode' : 'Dark mode'" position="bottom">
- <c-button circle variant="text" aria-label="Toggle dark/light mode" @click="() => styleStore.toggleDark()">
+ <c-tooltip :tooltip="isDarkTheme ? $t('home.nav.lightMode') : $t('home.nav.darkMode')" position="bottom">
+ <c-button circle variant="text" :aria-label="$t('home.nav.mode')" @click="() => styleStore.toggleDark()">
<n-icon v-if="isDarkTheme" size="25" :component="Sun" />
<n-icon v-else size="25" :component="Moon" />
</c-button>
avatar.com/avatar/25ba01eee5a1c0e007e810afe805766c?s=13&d=retro' width='13' height='13' alt='Gravatar' /> Miek Gieben 1-6/+9 2019-01-04docs: more on imports and snippets (#2423)Gravatar Miek Gieben 1-4/+22 2018-12-30disable ra flag for several plugins (#2408)Gravatar Isolus 11-12/+11 2018-12-17Fix nits in address.go. (#2404)Gravatar Taras Tsugrii 1-6/+3 2018-12-17Fuzzing: add more fuzzing targets (#2402)Gravatar Miek Gieben 4-3/+47