fix(ui/i18n): translate nav footer (#213)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
This commit is contained in:
parent
22e90b5ffd
commit
0caf7339ef
4 changed files with 12 additions and 5 deletions
|
@ -1,4 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
const { t } = useI18n()
|
||||
const buildTime = import.meta.env.__BUILD_TIME__ as string
|
||||
const buildTimeAgo = useTimeAgo(buildTime)
|
||||
</script>
|
||||
|
@ -6,10 +7,10 @@ const buildTimeAgo = useTimeAgo(buildTime)
|
|||
<template>
|
||||
<footer p4 text-sm text-secondary-light flex="~ col">
|
||||
<div flex="~ gap2" items-center mb4>
|
||||
<CommonTooltip content="Toggle theme">
|
||||
<CommonTooltip :content="t('nav_footer.toggle_theme')">
|
||||
<button flex i-ri-sun-line dark:i-ri-moon-line text-lg @click="toggleDark()" />
|
||||
</CommonTooltip>
|
||||
<CommonTooltip content="Zen mode">
|
||||
<CommonTooltip :content="t('nav_footer.zen_mode')">
|
||||
<button
|
||||
flex
|
||||
text-lg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue