feat: 添加语言管理功能,更新系统设置页面,优化用户体验

This commit is contained in:
2025-12-20 02:23:55 +07:00
parent 2703e6d007
commit 916cbe9d24
10 changed files with 210 additions and 16 deletions

View File

@@ -1,10 +1,15 @@
<script setup lang="ts">
const { initializeWallet } = useWalletStore();
const { locale } = useLanguage();
onMounted(() => {
initializeWallet();
console.log("App mounted successfully");
});
watch(locale, (newLocale) => {
document.querySelector("html")?.setAttribute("lang", newLocale);
}, { immediate: true });
</script>
<template>