From b78e57384c4797c0d07d7642919afe078136a918 Mon Sep 17 00:00:00 2001 From: axiangcoding Date: Tue, 2 Jul 2024 01:07:14 +0800 Subject: [PATCH] wip --- src/App.vue | 12 +++++++++++- src/i18n.ts | 14 +++++++------- src/locales/{en.json => en_us.json} | 9 +++------ src/locales/{zh.json => zh_cn.json} | 0 4 files changed, 21 insertions(+), 14 deletions(-) rename src/locales/{en.json => en_us.json} (52%) rename src/locales/{zh.json => zh_cn.json} (100%) diff --git a/src/App.vue b/src/App.vue index 8b2f5dd..83f6256 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,11 +3,14 @@ import { onMounted, ref } from "vue"; import { getVersion } from "@tauri-apps/api/app"; import { open } from "@tauri-apps/api/shell"; import BugReportDialog from "./components/dialog/BugReportDialog.vue"; +import { useI18n } from "vue-i18n"; const appVersion = ref(""); const drawer = ref(false); const feedbackDialog = ref(false); +const { t } = useI18n(); + const homeList = [ { icon: "mdi-home", @@ -47,6 +50,13 @@ const appInfo = [ }, ]; +const followLinks = [ + { + text: t("app.follow_links.bilibili"), + url: "https://space.bilibili.com/8696650", + }, +]; + onMounted(async () => { appVersion.value = await getVersion(); }); @@ -97,7 +107,7 @@ async function jumpToGithub() {