mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-11-04 17:10:20 +00:00
fix: LanguageSwitcher empty text
This commit is contained in:
1 parent
bdfbcaba65
commit
9921a9a9bb
1 file changed
+1
-1
@@ -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