[feat] i18n for nsis installer

This commit is contained in:
2025-11-06 14:55:43 +08:00
parent e774b31396
commit cce56eaf5e
3 changed files with 22 additions and 9 deletions

2
next-env.d.ts vendored
View File

@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts";
import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

View File

@@ -25,7 +25,14 @@
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
"timestampUrl": "",
"nsis": {
"languages": [
"SimpChinese",
"English",
"TradChinese"
]
}
},
"longDescription": "",
"macOS": {

View File

@@ -817,14 +817,20 @@ export function FpsTest() {
<TableCell className="text-xs">
{result.p1 !== null ? `${result.p1.toFixed(1)}` : "N/A"}
</TableCell>
<TableCell className="text-xs" title={result.hardwareInfo?.cpu || undefined}>
<TableCell className="text-xs max-w-[200px]" title={result.hardwareInfo?.cpu || undefined}>
<div className="truncate whitespace-nowrap">
{result.hardwareInfo?.cpu || "N/A"}
</div>
</TableCell>
<TableCell className="text-xs" title={result.hardwareInfo?.os || undefined}>
<TableCell className="text-xs max-w-[180px]" title={result.hardwareInfo?.os || undefined}>
<div className="truncate whitespace-nowrap">
{result.hardwareInfo?.os || "N/A"}
</div>
</TableCell>
<TableCell className="text-xs" title={result.hardwareInfo?.gpu || undefined}>
<TableCell className="text-xs max-w-[180px]" title={result.hardwareInfo?.gpu || undefined}>
<div className="truncate whitespace-nowrap">
{result.hardwareInfo?.gpu || "N/A"}
</div>
</TableCell>
<TableCell className="text-xs">
{result.hardwareInfo?.memory ? `${result.hardwareInfo.memory}GB` : "N/A"}