feat: locale system

This commit is contained in:
2026-02-02 10:00:51 +08:00
parent 9c82e12144
commit 1f59e81c52
11 changed files with 102 additions and 11 deletions

View File

@@ -1,4 +1,12 @@
<script lang="ts" setup></script>
<script lang="ts" setup>
import { useI18n } from "vue-i18n";
import { useLanguageStore } from "./stores/LanguageStore";
onMounted(() => {
// 加载 i18n
useI18n().locale.value = useLanguageStore().language;
});
</script>
<template>
<div>