tractatus/public
TheFlow 8528fd079b feat(translation): complete DeepL translation workflow
Frontend:
- Add translate button click handler in submission-modal-enhanced.js
- Display loading state during translation ( Translating...)
- Update French textarea with translated content
- Auto-update word counts after translation
- Show success message with DeepL attribution

Backend:
- Add POST /api/submissions/:id/translate endpoint
- Integrate Translation.service (DeepL)
- Save translations to SubmissionTracking.documents
- Mark translations as 'translatedBy: deepl', 'approved: false'
- Return translated text with caching metadata

Complete Translation Flow:
1. User clicks 'Translate EN → FR' button
2. Frontend sends English text to /api/submissions/:id/translate
3. Backend calls DeepL API via Translation.service
4. Translation cached for 24 hours
5. Result saved to submission.documents[docType].versions[]
6. French textarea populated with translation
7. User can review/edit before saving submission

Next: Configure DEEPL_API_KEY in .env to enable translations
2025-10-24 11:22:50 +13:00
..
.well-known fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
about fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
admin chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
css fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
demos fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
docs fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
downloads fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
fonts fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
images fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
js feat(translation): complete DeepL translation workflow 2025-10-24 11:22:50 +13:00
koha fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
locales fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
about.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
api-reference.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
architecture.html fix(website): governance compliance fixes from pre-Economist audit 2025-10-23 10:56:06 +13:00
blog-post.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
blog.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
case-submission.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
check-version.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
docs-viewer.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
docs.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
faq.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
favicon-new.svg fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
favicon.ico fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
favicon.svg fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
implementer.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
implementer.html.backup fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
index.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
koha.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
leader.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
manifest.json fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
media-inquiry.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
media-triage-transparency.html fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
privacy.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
researcher.html chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00
service-worker.js feat(cache): enforce mandatory cache version updates for JS changes 2025-10-24 09:43:20 +13:00
test-pressure-chart.html fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
version.json chore: bump cache version after submissions controller fix 2025-10-24 10:27:57 +13:00