mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-02-04 04:30:07 +00:00
fix: LanguageSwitcher empty text
This commit is contained in:
@@ -13,7 +13,7 @@ import { useTranslation } from "react-i18next"
|
||||
export function LanguageSwitcher() {
|
||||
const { t, i18n } = useTranslation()
|
||||
|
||||
const locale = i18n.language
|
||||
const locale = i18n.languages[0]
|
||||
|
||||
const handleSelect = (e: Event, newLocale: string) => {
|
||||
e.preventDefault() // 阻止默认的关闭行为
|
||||
|
||||
Reference in New Issue
Block a user