summaryrefslogtreecommitdiffhomepage
path: root/packages/console/app/src/routes/bench
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-02-27 15:50:50 -0600
committerGitHub <[email protected]>2026-02-27 15:50:50 -0600
commit7f851da15ecde7db6535aae1f13009d3d6068daf (patch)
treee8978e858c09a6507dfe0ad40b32b008d634b82e /packages/console/app/src/routes/bench
parenta3bdb974b36714ace5e2a41e76da8aa6682eb4c8 (diff)
downloadopencode-7f851da15ecde7db6535aae1f13009d3d6068daf.tar.gz
opencode-7f851da15ecde7db6535aae1f13009d3d6068daf.zip
chore(console): i18n sync (#15360)
Diffstat (limited to 'packages/console/app/src/routes/bench')
-rw-r--r--packages/console/app/src/routes/bench/submission.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/console/app/src/routes/bench/submission.ts b/packages/console/app/src/routes/bench/submission.ts
index 94639439b..969ff1659 100644
--- a/packages/console/app/src/routes/bench/submission.ts
+++ b/packages/console/app/src/routes/bench/submission.ts
@@ -2,6 +2,8 @@ import type { APIEvent } from "@solidjs/start/server"
import { Database } from "@opencode-ai/console-core/drizzle/index.js"
import { BenchmarkTable } from "@opencode-ai/console-core/schema/benchmark.sql.js"
import { Identifier } from "@opencode-ai/console-core/identifier.js"
+import { i18n } from "~/i18n"
+import { localeFromRequest } from "~/lib/language"
interface SubmissionBody {
model: string
@@ -10,10 +12,11 @@ interface SubmissionBody {
}
export async function POST(event: APIEvent) {
+ const dict = i18n(localeFromRequest(event.request))
const body = (await event.request.json()) as SubmissionBody
if (!body.model || !body.agent || !body.result) {
- return Response.json({ error: "All fields are required" }, { status: 400 })
+ return Response.json({ error: dict["bench.submission.error.allFieldsRequired"] }, { status: 400 })
}
await Database.use((tx) =>