fix(panel): extract hardcoded Chinese text to i18n keys
This commit is contained in:
3 files changed
+21
-7
No files matched your search
@@ -33,6 +33,13 @@
|
|||||||
"no_servers_monitor": "No active instances in the cluster",
|
"no_servers_monitor": "No active instances in the cluster",
|
||||||
"images_count": "Whitelisted backend images available",
|
"images_count": "Whitelisted backend images available",
|
||||||
"images_security_note": ". All backend images undergo Trivy CVE vulnerability scanning before deployment and run in isolated security containers.",
|
"images_security_note": ". All backend images undergo Trivy CVE vulnerability scanning before deployment and run in isolated security containers.",
|
||||||
|
"manage_game_character": "Manage Game Character",
|
||||||
|
"instances_count": "{{count}} instances",
|
||||||
|
"quick_start_guide": "Quick Start Guide:",
|
||||||
|
"quick_start_step1": "Claiming an unowned server automatically adds your Minecraft UUID to the access whitelist.",
|
||||||
|
"quick_start_step2": "When a server sits idle with no players online, the platform automatically sleeps it to conserve resources.",
|
||||||
|
"quick_start_step3": "All game traffic is routed through the Velocity gateway — simply connect to your dedicated subdomain.",
|
||||||
|
"voxel_topology_desc": "3D Voxel Network Topology",
|
||||||
"legend_title": "3D Node Monitor Legend",
|
"legend_title": "3D Node Monitor Legend",
|
||||||
"legend_running": "Running",
|
"legend_running": "Running",
|
||||||
"legend_starting": "Starting",
|
"legend_starting": "Starting",
|
||||||
|
|||||||
@@ -33,6 +33,13 @@
|
|||||||
"no_servers_monitor": "当前集群暂无服务器实例",
|
"no_servers_monitor": "当前集群暂无服务器实例",
|
||||||
"images_count": "个支持的白名单镜像环境",
|
"images_count": "个支持的白名单镜像环境",
|
||||||
"images_security_note": "。所有后端镜像运行前均通过 Trivy CVE 漏洞扫描,强制在隔离的安全容器中托管。",
|
"images_security_note": "。所有后端镜像运行前均通过 Trivy CVE 漏洞扫描,强制在隔离的安全容器中托管。",
|
||||||
|
"manage_game_character": "管理游戏角色",
|
||||||
|
"instances_count": "{{count}} 实例",
|
||||||
|
"quick_start_guide": "快速入门指引:",
|
||||||
|
"quick_start_step1": "认领无主服后,系统会自动将您的 Minecraft UUID 添加至准入白名单。",
|
||||||
|
"quick_start_step2": "服务器如果长时间处于无人在线空闲状态,平台会自动执行休眠存档以节约资源。",
|
||||||
|
"quick_start_step3": "游戏入口统一由 Velocity 网关承载,只需连接您的专用子域名即可。",
|
||||||
|
"voxel_topology_desc": "三维体素网络拓扑图",
|
||||||
"legend_title": "3D 节点监控图例",
|
"legend_title": "3D 节点监控图例",
|
||||||
"legend_running": "运行中",
|
"legend_running": "运行中",
|
||||||
"legend_starting": "启动中",
|
"legend_starting": "启动中",
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ function FleetView({
|
|||||||
</div>
|
</div>
|
||||||
<Link to="/account" className="shrink-0 w-full sm:w-auto">
|
<Link to="/account" className="shrink-0 w-full sm:w-auto">
|
||||||
<Button variant="outline" size="sm" className="w-full text-xs">
|
<Button variant="outline" size="sm" className="w-full text-xs">
|
||||||
管理游戏角色
|
{t("manage_game_character")}
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
</>
|
</>
|
||||||
@@ -291,7 +291,7 @@ function FleetView({
|
|||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<div className="flex justify-between text-xs">
|
<div className="flex justify-between text-xs">
|
||||||
<span className="text-muted-foreground">{t("status_distribution")}</span>
|
<span className="text-muted-foreground">{t("status_distribution")}</span>
|
||||||
<span className="font-medium text-foreground">{servers.length} 实例</span>
|
<span className="font-medium text-foreground">{t("instances_count", { count: servers.length })}</span>
|
||||||
</div>
|
</div>
|
||||||
{servers.length > 0 ? (
|
{servers.length > 0 ? (
|
||||||
<div className="h-3 w-full bg-secondary rounded-full overflow-hidden flex">
|
<div className="h-3 w-full bg-secondary rounded-full overflow-hidden flex">
|
||||||
@@ -427,11 +427,11 @@ function FleetView({
|
|||||||
|
|
||||||
{/* 极简平台新手引导指引(真实且有用) */}
|
{/* 极简平台新手引导指引(真实且有用) */}
|
||||||
<div className="p-3.5 rounded-lg border bg-accent/5 text-[11px] text-muted-foreground space-y-1.5">
|
<div className="p-3.5 rounded-lg border bg-accent/5 text-[11px] text-muted-foreground space-y-1.5">
|
||||||
<div className="font-semibold text-foreground text-xs">快速入门指引:</div>
|
<div className="font-semibold text-foreground text-xs">{t("quick_start_guide")}</div>
|
||||||
<ul className="list-disc list-inside space-y-1">
|
<ul className="list-disc list-inside space-y-1">
|
||||||
<li>认领无主服后,系统会自动将您的 Minecraft UUID 添加至准入白名单。</li>
|
<li>{t("quick_start_step1")}</li>
|
||||||
<li>服务器如果长时间处于无人在线空闲状态,平台会自动执行休眠存档以节约资源。</li>
|
<li>{t("quick_start_step2")}</li>
|
||||||
<li>游戏入口统一由 Velocity 网关承载,只需连接您的专用子域名即可。</li>
|
<li>{t("quick_start_step3")}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -451,7 +451,7 @@ function FleetView({
|
|||||||
<Card className="lg:col-span-4 flex flex-col overflow-hidden h-full">
|
<Card className="lg:col-span-4 flex flex-col overflow-hidden h-full">
|
||||||
<CardHeader className="space-y-1 pb-4">
|
<CardHeader className="space-y-1 pb-4">
|
||||||
<CardTitle className="text-base">{t("fleet")}</CardTitle>
|
<CardTitle className="text-base">{t("fleet")}</CardTitle>
|
||||||
<p className="text-xs text-muted-foreground">三维体素网络拓扑图</p>
|
<p className="text-xs text-muted-foreground">{t("voxel_topology_desc")}</p>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="flex-1 flex flex-col p-0 justify-between">
|
<CardContent className="flex-1 flex flex-col p-0 justify-between">
|
||||||
<div className="flex-1 min-h-[220px] w-full bg-gradient-to-b from-transparent to-primary/5 border-b relative">
|
<div className="flex-1 min-h-[220px] w-full bg-gradient-to-b from-transparent to-primary/5 border-b relative">
|
||||||
|
|||||||
Reference in new issue
Block a user