doxa-maps-cdn/server/api/admin/pages
corsacca 7dfad0ee07 replace deepl with llm translation via openrouter
- translateText/translateTexts call OpenRouter chat-completions; glossary
  terms are prompt-injected from config/glossaries.ts, generated from the
  translation repo's TSVs by scripts/build-glossaries.ts
- model resolution: per-language override in config/languages.ts →
  translation.model site setting (new admin field) → TRANSLATION_MODEL env
  → anthropic/claude-opus-5, at low reasoning effort
- blank fragments are held back from the model, which drops them and breaks
  the one-translation-per-fragment count the caller maps results back on
- OpenRouter failures map to a typed error with a human-readable message;
  an unrecoverable one (no credits, bad key, rejected model) stops the run
  instead of repeating the same call for every remaining locale
- machine translations record source 'auto-translate'; 'deepl' stays
  readable for snapshots written before the switch
2026-09-07 16:30:48 +01:00
..
[id] replace deepl with llm translation via openrouter 2026-09-07 16:30:48 +01:00
[id].delete.ts Let categories have child categories for nested pages. (#6) 2026-05-21 06:00:54 -05:00
[id].get.ts Let categories have child categories for nested pages. (#6) 2026-05-21 06:00:54 -05:00
[id].patch.ts Better error messages when updating the CMS 2026-05-04 10:59:48 +01:00
index.get.ts Let categories have child categories for nested pages. (#6) 2026-05-21 06:00:54 -05:00
index.post.ts new CMS pages append to the bottom of their category 2026-05-21 10:55:15 +01:00