Implementiere i18n für Frontend, Admin und Datenbank

This commit is contained in:
Hördle Bot
2025-11-28 15:36:06 +01:00
parent 9df9a808bf
commit 771d0d06f3
37 changed files with 3717 additions and 560 deletions

View File

@@ -98,14 +98,14 @@ export async function DELETE(request: Request) {
where: { id: puzzle.specialId }
});
if (special) {
newPuzzle = await getOrCreateSpecialPuzzle(special.name);
newPuzzle = await getOrCreateSpecialPuzzle(special);
}
} else if (puzzle.genreId) {
const genre = await prisma.genre.findUnique({
where: { id: puzzle.genreId }
});
if (genre) {
newPuzzle = await getOrCreateDailyPuzzle(genre.name);
newPuzzle = await getOrCreateDailyPuzzle(genre);
}
} else {
newPuzzle = await getOrCreateDailyPuzzle(null);