Skip to content

Commit 0469c9e

Browse files
committed
feat: Added support for Traditional Chinese
1 parent e7207d8 commit 0469c9e

File tree

12 files changed

+981
-99
lines changed

12 files changed

+981
-99
lines changed

CHANGE_LOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- Self-built token integration logic for OpenAI, Azure OpenAI, and OpenRouter interfaces
2020
- Added support for configuring Le-AI API Key
2121
- Introduced shadcn/ui to optimize the style of some components
22+
- Added support for Traditional Chinese
2223

2324
### Changed
2425

CHANGE_LOG.zh_CN.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- 自构建令牌打通 OpenAI、Azure OpenAI、OpenRouter 接口逻辑
2020
- 新增支持配置 Le-AI API Key
2121
- 引入 shadcn/ui 优化部分组件样式
22+
- 新增繁体中文支持
2223

2324
### 调整
2425

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"next-intl": "2.20.0",
5151
"next-themes": "0.2.1",
5252
"nodemailer": "6.9.4",
53-
"postcss": "8.4.28",
53+
"postcss": "8.4.29",
5454
"react": "18.2.0",
5555
"react-day-picker": "^8.8.1",
5656
"react-dom": "18.2.0",

pnpm-lock.yaml

+20-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/[locale]/layout.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ import Providers from "../providers";
77
import Announcement from "@/components/announcement";
88

99
export function generateStaticParams() {
10-
return [{ locale: "en" }, { locale: "zh-CN" }];
10+
return [
11+
{ locale: "en" },
12+
{ locale: "zh-CN" },
13+
{ locale: "zh-HK" },
14+
// { locale: "ja" },
15+
];
1116
}
1217

1318
const inter = Inter({ subsets: ["latin"] });

src/components/menu/pc/handler/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ import Notice from "../../notice";
1414
import Github from "./github";
1515

1616
export const languages: DropdownOption[] = [
17-
{ label: "🇨🇳 简体中文", value: "zh-CN" },
1817
{ label: "🇺🇸 English", value: "en" },
18+
{ label: "🇨🇳 简体中文", value: "zh-CN" },
19+
{ label: "🇭🇰 繁体中文", value: "zh-HK" },
20+
// { label: "🇯🇵 日本語", value: "ja" },
1921
];
2022

2123
export default function Handler() {

src/components/menu/pc/handler/languageSelect.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ import { cn } from "@/lib";
77
import { useOpenStore } from "@/hooks/useOpen";
88

99
export const languages: DropdownOption[] = [
10-
{ label: "🇨🇳 简体中文", value: "zh-CN" },
1110
{ label: "🇺🇸 English", value: "en" },
11+
{ label: "🇨🇳 简体中文", value: "zh-CN" },
12+
{ label: "🇭🇰 繁体中文", value: "zh-HK" },
13+
// { label: "🇯🇵 日本語", value: "ja" },
1214
];
1315

1416
export default function LanguageSelect({

src/components/site/logo.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ export default function Logo({
2626
const onCheckLog = () => {
2727
localStorage.setItem("is_new_version", pkg.version);
2828
const version = pkg.version.replace(/\./g, "");
29-
const localePath = locale === "zh-CN" ? "zh-CN/" : "";
30-
const url = `https://docs.le-ai.app/${localePath}change-log#v${version}`;
29+
const url = `https://docs.le-ai.app/change-log#v${version}`;
3130
window.open(url);
3231
};
3332

0 commit comments

Comments
 (0)