feat(i18n): add language switcher component to navigation

This commit is contained in:
ghostubborn
2026-04-01 15:24:58 +08:00
parent 8f6110df0f
commit 3d5e5d024d
7 changed files with 171 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
<nav class="navbar">
<div class="nav-brand">MIROFISH</div>
<div class="nav-links">
<LanguageSwitcher dark />
<a href="https://github.com/666ghj/MiroFish" target="_blank" class="github-link">
访问我们的Github主页 <span class="arrow"></span>
</a>
@@ -210,6 +211,7 @@
import { ref, computed } from 'vue'
import { useRouter } from 'vue-router'
import HistoryDatabase from '../components/HistoryDatabase.vue'
import LanguageSwitcher from '../components/LanguageSwitcher.vue'
const router = useRouter()
@@ -351,6 +353,7 @@ const startSimulation = () => {
.nav-links {
display: flex;
align-items: center;
gap: 16px;
}
.github-link {