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

@@ -28,8 +28,8 @@ model Song {
model Genre {
id Int @id @default(autoincrement())
name String @unique
subtitle String?
name Json // Multilingual: { "de": "Rock", "en": "Rock" }
subtitle Json? // Multilingual
active Boolean @default(true)
songs Song[]
dailyPuzzles DailyPuzzle[]
@@ -37,8 +37,8 @@ model Genre {
model Special {
id Int @id @default(autoincrement())
name String @unique
subtitle String?
name Json // Multilingual
subtitle Json? // Multilingual
maxAttempts Int @default(7)
unlockSteps String // JSON string: e.g. "[2, 4, 7, 11, 16, 30]"
createdAt DateTime @default(now())
@@ -77,8 +77,8 @@ model DailyPuzzle {
model News {
id Int @id @default(autoincrement())
title String
content String // Markdown format
title Json // Multilingual
content Json // Multilingual
author String? // Optional: curator/admin name
publishedAt DateTime @default(now())
updatedAt DateTime @updatedAt