fix(i18n): translate English messages in org-numbers and workshop routes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
g-butandClaude Opus 4.6 committed 2026-02-23 16:03:09 +01:00
1 parent 2b40b9c14b
commit 872d7649c1
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -20,7 +20,7 @@ export async function GET(request: NextRequest) {
const category = searchParams.get('category') as OrgNumberCategory | null
if (category && !VALID_CATEGORIES.includes(category)) {
return apiBadRequest(`Invalid category. Must be one of: ${VALID_CATEGORIES.join(', ')}`)
return apiBadRequest(`Ungültige Kategorie. Erlaubt: ${VALID_CATEGORIES.join(', ')}`)
}
const numbers = await getOrgNumbers(category ?? undefined)
@@ -45,6 +45,6 @@ export async function GET(request: NextRequest) {
meta: { source: 'database', count: numbers.length }
})
} catch (error) {
return apiError(error, 'Server error')
return apiError(error, 'Serverfehler')
}
}
@@ -38,7 +38,7 @@ export async function GET(
)
if (workshopResult.rows.length === 0) {
return apiNotFound('Workshop not found')
return apiNotFound('Workshop')
}
const workshop = workshopResult.rows[0] as { id: string; title: string }
@@ -33,7 +33,7 @@ export async function GET(
)
if (workshopResult.rows.length === 0) {
return apiNotFound('Workshop not found')
return apiNotFound('Workshop')
}
const workshopId = (workshopResult.rows[0] as { id: string }).id