feat: ru lang

This commit is contained in:
Tristan Yang
2025-01-15 19:17:20 +08:00
parent 183dbe634a
commit c62a18d823
12 changed files with 667 additions and 5 deletions
+3 -2
View File
@@ -5,7 +5,7 @@ import SettingBlock from "@/components/SettingBlock";
import StyledRadio from "@/components/styled/Radio";
// type Props = {}
type LanguageType = "en" | "zh" | "jp" | "tr" | "pt" | "es" | "fr";
type LanguageType = "en" | "zh" | "jp" | "tr" | "pt" | "es" | "fr" | "ru";
const LangMap: Record<LanguageType, string> = {
en: "English",
zh: "中文",
@@ -13,7 +13,8 @@ const LangMap: Record<LanguageType, string> = {
jp: "日本語",
pt: "Portuguese",
fr: "Français",
es: "Español"
es: "Español",
ru: "Русский"
};
const Index = () => {
const { t, i18n } = useTranslation("setting");
+3 -2
View File
@@ -5,7 +5,7 @@ import SettingBlock from "@/components/SettingBlock";
import StyledRadio from "@/components/styled/Radio";
// type Props = {}
type LanguageType = "en" | "zh" | "jp" | "tr" | "pt" | "es" | "fr";
type LanguageType = "en" | "zh" | "jp" | "tr" | "pt" | "es" | "fr" | "ru";
const LangMap: Record<LanguageType, string> = {
en: "English",
zh: "中文",
@@ -13,7 +13,8 @@ const LangMap: Record<LanguageType, string> = {
jp: "日本語",
pt: "Portuguese",
fr: "Français",
es: "Español"
es: "Español",
ru: "Русский"
};
const Index = () => {
const { t, i18n } = useTranslation("setting");