mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 17:41:56 +08:00
fix: i18n
This commit is contained in:
parent
26871521d8
commit
8812cd1d3f
@ -10,10 +10,10 @@ import { Moon, Sun } from "lucide-react";
|
|||||||
import { Theme } from "@/components/ThemeProvider";
|
import { Theme } from "@/components/ThemeProvider";
|
||||||
import { useTheme } from "../hooks/use-theme";
|
import { useTheme } from "../hooks/use-theme";
|
||||||
import { CheckCircleIcon } from "@heroicons/react/20/solid";
|
import { CheckCircleIcon } from "@heroicons/react/20/solid";
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
export function ModeToggle() {
|
export function ModeToggle() {
|
||||||
const {t} = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { setTheme, theme } = useTheme();
|
const { setTheme, theme } = useTheme();
|
||||||
|
|
||||||
const handleSelect = (e: Event, newTheme: Theme) => {
|
const handleSelect = (e: Event, newTheme: Theme) => {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"overview": "Overview",
|
"overview": "Overview",
|
||||||
"language": {
|
"language": {
|
||||||
"zh-CN": "简体中文",
|
"zh-CN": "简体中文",
|
||||||
"zh-TW": "繁體中文",
|
"zh-TW": "繁體中文",
|
||||||
"en": "English"
|
"en": "English"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user