diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 3dc2d89..6ff88a0 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -46,7 +46,7 @@ "digestAlgorithm": "sha256", "timestampUrl": "", "wix": { - "language": ["zh-CN", "en-US"] + "language": ["zh-CN", "en-US", "ru-RU"] } } }, diff --git a/src/components/setting/setting-verge.tsx b/src/components/setting/setting-verge.tsx index ed43fa5..0de06e1 100644 --- a/src/components/setting/setting-verge.tsx +++ b/src/components/setting/setting-verge.tsx @@ -59,6 +59,7 @@ const SettingVerge = ({ onError }: Props) => { diff --git a/src/pages/_layout.tsx b/src/pages/_layout.tsx index f22654b..84263d5 100644 --- a/src/pages/_layout.tsx +++ b/src/pages/_layout.tsx @@ -19,6 +19,7 @@ import LayoutTraffic from "@/components/layout/layout-traffic"; import UpdateButton from "@/components/layout/update-button"; import useCustomTheme from "@/components/layout/use-custom-theme"; import getSystem from "@/utils/get-system"; +import "dayjs/locale/ru"; import "dayjs/locale/zh-cn"; dayjs.extend(relativeTime); diff --git a/src/services/i18n.ts b/src/services/i18n.ts index 1bd00aa..8d4c14b 100644 --- a/src/services/i18n.ts +++ b/src/services/i18n.ts @@ -1,10 +1,12 @@ import i18n from "i18next"; import { initReactI18next } from "react-i18next"; import en from "@/locales/en.json"; +import ru from "@/locales/ru.json"; import zh from "@/locales/zh.json"; const resources = { en: { translation: en }, + ru: { translation: ru }, zh: { translation: zh }, };