From 594ff5ab540691b05f3d058074e0a8cfc29fe281 Mon Sep 17 00:00:00 2001
From: N0VAN0M4LY <224130499+N0VAN0M4LY@users.noreply.github.com>
Date: Thu, 3 Dec 2026 04:34:22 +0800
Subject: [PATCH] feat(launcher): add project homepage link to About page
Add a Project homepage card and button pointing to https://wto-project.net on the launcher About page with matching zh-CN and en locale entries. Root typecheck, launcher typecheck, electron-vite build, and locale key parity checks passed.
---
.../src/renderer/src/i18n/locales/en.json | 5 +++++
.../src/renderer/src/i18n/locales/zh-CN.json | 5 +++++
.../renderer/src/pages/about/AboutPage.tsx | 19 +++++++++++++++++++
3 files changed, 29 insertions(+)
diff --git a/apps/launcher/src/renderer/src/i18n/locales/en.json b/apps/launcher/src/renderer/src/i18n/locales/en.json
index 134ba30..b6928f1 100644
--- a/apps/launcher/src/renderer/src/i18n/locales/en.json
+++ b/apps/launcher/src/renderer/src/i18n/locales/en.json
@@ -644,6 +644,11 @@
},
"statement": "Project information",
"statementBody": "WTOffline is a noncommercial hobby project independent of Gaijin. Running it requires your own War Thunder base game files.",
+ "homepage": {
+ "title": "Project homepage",
+ "hint": "Project overview, release catalog, and community links.",
+ "open": "Open homepage"
+ },
"community": {
"discord": "Discord",
"discordHint": "Development discussion, general chat, troubleshooting, and bug reports.",
diff --git a/apps/launcher/src/renderer/src/i18n/locales/zh-CN.json b/apps/launcher/src/renderer/src/i18n/locales/zh-CN.json
index 2f52d1c..45cd74d 100644
--- a/apps/launcher/src/renderer/src/i18n/locales/zh-CN.json
+++ b/apps/launcher/src/renderer/src/i18n/locales/zh-CN.json
@@ -644,6 +644,11 @@
},
"statement": "项目信息",
"statementBody": "WTOffline 是一个独立于 Gaijin 的非商业兴趣项目。运行需要自备战争雷霆游戏本体文件。",
+ "homepage": {
+ "title": "项目主页",
+ "hint": "查看项目介绍、全部版本与社区入口。",
+ "open": "打开主页"
+ },
"community": {
"discord": "Discord",
"discordHint": "开发讨论、日常交流、使用求助与问题反馈。",
diff --git a/apps/launcher/src/renderer/src/pages/about/AboutPage.tsx b/apps/launcher/src/renderer/src/pages/about/AboutPage.tsx
index bff26e2..eacc6fb 100644
--- a/apps/launcher/src/renderer/src/pages/about/AboutPage.tsx
+++ b/apps/launcher/src/renderer/src/pages/about/AboutPage.tsx
@@ -7,6 +7,7 @@ import type { AppUpdateState } from '../../shell/useAppUpdate.ts';
import { AppUpdateSection } from './AppUpdateSection.tsx';
import type { PatchPackState } from '../../shell/usePatchPack.ts';
+const HOMEPAGE_URL = 'https://wto-project.net';
const DISCORD_INVITE_URL = 'https://discord.gg/P566xWNpEs';
interface AboutPageProps {
@@ -37,6 +38,7 @@ export function AboutPage({ launcherVersion, supportedVersions, patchPack, appUp
{t('about.homepage.hint')}
+