refactor: update language configuration

This commit is contained in:
radishzzz 2025-03-15 01:02:45 +00:00
parent ff59dc1a7c
commit 22dc899a95
25 changed files with 53 additions and 188 deletions

View file

@ -1,6 +1,5 @@
---
import themeConfig from '@/config'
import { allLocales, defaultLocale } from '@/i18n/config'
import { allLocales, defaultLocale, themeConfig } from '@/config'
import { ClientRouter } from 'astro:transitions'
interface Props {

View file

@ -80,7 +80,7 @@ const footerMarginClass = isPost && themeConfig.comment?.waline?.serverURL
<ThemeToggle />
</div>
<!--=============================================== Theme Toggle ===============================================-->
<!-- Theme toggle >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -->
<script define:vars={{ lightMode, darkMode }}>
// Update theme
function updateTheme() {