更新国际化支持:在多个组件中引入 vue-i18n

This commit is contained in:
jxxghp
2025-04-27 21:23:29 +08:00
parent 0396f180ae
commit a641e90031
10 changed files with 911 additions and 217 deletions

View File

@@ -78,12 +78,12 @@ onMounted(() => {
<SearchBar />
<!-- 👉 Spacer -->
<VSpacer />
<!-- 👉 Theme & Language -->
<NavbarActions />
<!-- 👉 Shortcuts -->
<ShortcutBar v-if="superUser" />
<!-- 👉 Notification -->
<UserNofification />
<!-- 👉 Theme & Language -->
<NavbarActions />
<!-- 👉 UserProfile -->
<UserProfile />
</div>

View File

@@ -36,10 +36,9 @@ const themes: ThemeSwitcherTheme[] = [
<template>
<div class="d-flex align-center">
<!-- 语言切换 -->
<LocaleSwitcher class="me-2" />
<!-- 主题切换 -->
<ThemeSwitcher :themes="themes" />
<!-- 语言切换 -->
<LocaleSwitcher class="me-2" />
</div>
</template>

View File

@@ -176,8 +176,7 @@ onMounted(() => {
<div v-for="(item, index) in shortcuts" :key="index">
<VCard
flat
variant="tonal"
class="pa-2 d-flex align-center rounded-lg cursor-pointer transition-transform duration-300 hover:-translate-y-1 border"
class="pa-2 d-flex align-center cursor-pointer transition-transform duration-300 hover:-translate-y-1 border h-full"
hover
@click="openDialog(item.dialogRef)"
>