DeepL-Anbindung für automatische Übersetzung
app/api/translate ruft DeepL für EN+PL auf und schreibt das Ergebnis in die jeweilige _en/_pl-Spalte (Staff/Admin-only, Service-Role-Key). Ohne DEEPL_API_KEY (neue Docker-Variable) antwortet die Route mit configured:false, das Frontend zeigt dann den Hinweis zur manuellen Eingabe statt eines Fehlers.
This commit is contained in:
@@ -36,6 +36,10 @@ services:
|
||||
APP_URL: ${APP_URL:-http://localhost:3000}
|
||||
# Titel im Browser-Tab und Überschrift, solange kein Logo hochgeladen ist.
|
||||
SITE_TITLE: ${SITE_TITLE:-Canteen Menu}
|
||||
# Optional: DeepL-API-Key für automatische Übersetzung von Gerichten
|
||||
# (Kürzel-Erklärungen, Bereichen) nach Englisch/Polnisch. Ohne Key
|
||||
# bleibt "Automatisch übersetzen" inaktiv, manuelle Eingabe geht immer.
|
||||
DEEPL_API_KEY: ${DEEPL_API_KEY:-}
|
||||
ports:
|
||||
- "0.0.0.0:3000:3000"
|
||||
restart: unless-stopped
|
||||
@@ -71,6 +75,7 @@ services:
|
||||
SUPABASE_SERVICE_ROLE_KEY: ${SUPABASE_SERVICE_ROLE_KEY}
|
||||
APP_URL: ${APP_URL:-http://localhost:3000}
|
||||
SITE_TITLE: ${SITE_TITLE:-Canteen Menu}
|
||||
DEEPL_API_KEY: ${DEEPL_API_KEY:-}
|
||||
ports:
|
||||
- "0.0.0.0:3000:3000"
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user