mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 17:41:56 +08:00
fix: LanguageSwitcher empty text
This commit is contained in:
parent
bdfbcaba65
commit
9921a9a9bb
@ -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() // 阻止默认的关闭行为
|
||||
|
Loading…
x
Reference in New Issue
Block a user