doxa-maps-cdn/scripts
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
..
lib Central tiptap block definitions 2026-04-23 11:05:05 +01:00
scraped phase 7 2026-04-22 08:19:38 +01:00
build-glossaries.ts replace deepl with llm translation via openrouter 2026-09-07 16:30:48 +01:00
import-content.ts Implement page categories 2026-04-23 15:50:52 +01:00
po-to-json.ts phase 2 2026-04-21 13:27:38 +01:00
scrape-content.ts phase 7 2026-04-22 08:19:38 +01:00
sync-menu-order.ts Implement page categories 2026-04-23 15:50:52 +01:00