When requesting a translation via ?lang=de or ?lang=fr, the API now: 1. First checks for embedded translations (document.translations.de/fr) 2. Falls back to checking for separate documents with -de/-fr suffix This allows the glossary translations (glossary-de, glossary-fr) to work with the standard /api/documents/glossary?lang=de endpoint. Fixes the 404 error when switching languages on /docs.html page. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| config | ||
| controllers | ||
| middleware | ||
| models | ||
| routes | ||
| services | ||
| utils | ||
| server.js | ||