[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" />
/// <reference types="next/image-types/global" /> /// <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 // NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information. // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

View File

@@ -25,7 +25,14 @@
"windows": { "windows": {
"certificateThumbprint": null, "certificateThumbprint": null,
"digestAlgorithm": "sha256", "digestAlgorithm": "sha256",
"timestampUrl": "" "timestampUrl": "",
"nsis": {
"languages": [
"SimpChinese",
"English",
"TradChinese"
]
}
}, },
"longDescription": "", "longDescription": "",
"macOS": { "macOS": {
@@ -82,7 +89,7 @@
"theme": null, "theme": null,
"hiddenTitle": true, "hiddenTitle": true,
"titleBarStyle": "Transparent", "titleBarStyle": "Transparent",
"visible": false "visible": false
} }
], ],
"security": { "security": {

View File

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