mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 07:19:00 +01:00
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:
1 parent
2b40b9c14b
commit
872d7649c1
3 files changed
+4
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user