增加翻译语言

This commit is contained in:
2026-01-05 11:40:11 +08:00
parent 13e8789321
commit 4c64aa0a40
10 changed files with 1212 additions and 1 deletions

View File

@@ -38,6 +38,42 @@ export default function LanguageSettings() {
>
</GhostButton>
<GhostButton
className="w-full bg-[#35786f]"
onClick={() => setLocale("ja-JP")}
>
</GhostButton>
<GhostButton
className="w-full bg-[#35786f]"
onClick={() => setLocale("ko-KR")}
>
</GhostButton>
<GhostButton
className="w-full bg-[#35786f]"
onClick={() => setLocale("de-DE")}
>
Deutsch
</GhostButton>
<GhostButton
className="w-full bg-[#35786f]"
onClick={() => setLocale("fr-FR")}
>
Français
</GhostButton>
<GhostButton
className="w-full bg-[#35786f]"
onClick={() => setLocale("it-IT")}
>
Italiano
</GhostButton>
<GhostButton
className="w-full bg-[#35786f]"
onClick={() => setLocale("ug-CN")}
>
ئۇيغۇرچە
</GhostButton>
</div>
</div>
)}

View File

@@ -1,2 +1,11 @@
export const SUPPORTED_LOCALES = ["en-US", "zh-CN"];
export const SUPPORTED_LOCALES = [
"en-US",
"zh-CN",
"ja-JP",
"ko-KR",
"de-DE",
"fr-FR",
"it-IT",
"ug-CN",
];
export const DEFAULT_LOCALE = "en-US";