配置语言

This commit is contained in:
lzp
2026-03-03 11:10:43 +08:00
parent 84cc6a5607
commit 0e5b3049b6
11 changed files with 260 additions and 105 deletions

View File

@@ -9,7 +9,7 @@
>
<template #header="{ close }">
<div class="setting-header">
<div class="title">Setting</div>
<div class="title">{{ $t('Home.setting') }}</div>
<span class="close" @click="close">
<svg-icon name="close" size="10" color="#000" />
</span>
@@ -56,9 +56,9 @@
const nav = ref('setting')
const navs = shallowRef([
{ icon: 'setting', label: 'General', component: General },
{ icon: 'profile', label: 'Profile', component: Profile },
{ icon: 'learn-more', label: 'Learn more', component: LearnMore }
{ icon: 'setting', label: $t('Home.general'), component: General },
{ icon: 'profile', label: $t('Home.profile'), component: Profile },
{ icon: 'learn-more', label: $t('Home.learnMore'), component: LearnMore }
])
</script>