mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 09:31:55 +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 { useTheme } from "../hooks/use-theme";
|
||||
import { CheckCircleIcon } from "@heroicons/react/20/solid";
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
export function ModeToggle() {
|
||||
const {t} = useTranslation();
|
||||
const { t } = useTranslation();
|
||||
const { setTheme, theme } = useTheme();
|
||||
|
||||
const handleSelect = (e: Event, newTheme: Theme) => {
|
||||
|
@ -1,9 +1,9 @@
|
||||
{
|
||||
"overview": "Overview",
|
||||
"language": {
|
||||
"zh-CN": "简体中文",
|
||||
"zh-TW": "繁體中文",
|
||||
"en": "English"
|
||||
"zh-CN": "简体中文",
|
||||
"zh-TW": "繁體中文",
|
||||
"en": "English"
|
||||
},
|
||||
"theme": {
|
||||
"light": "Light",
|
||||
|
Loading…
x
Reference in New Issue
Block a user