Commit graph

13 commits

Author SHA1 Message Date
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
corsacca
a87f92c7a4 Category reorder. 2026-05-21 13:28:12 +01:00
corsacca
6f918a9d85
Let categories have child categories for nested pages. (#6)
* Let categories have child categories for nested pages.

* fixes
2026-05-21 06:00:54 -05:00
corsacca
826cfea0ce Implement CMS version history. 2026-05-06 16:06:11 +01:00
corsacca
c85389f497 Add settings table and setting to disable registration 2026-04-28 15:17:26 +01:00
corsacca
54aaef6bae
User invitation (#3)
* Implement user invitation

* fix /admin styles clash on dev

* Fix user invite issues
2026-04-28 06:26:59 -05:00
corsacca
3355a926a2 Cache fixes 2026-04-23 18:16:37 +01:00
corsacca
76a064d068 Implement page categories 2026-04-23 15:50:52 +01:00
corsacca
4114e21042 Better CMS page routing and Caching. 2026-04-23 14:05:40 +01:00
corsacca
3ea15e933a add theme and custom css to CMS metadata 2026-04-23 11:44:36 +01:00
corsacca
a3919e0764 phase 7 2026-04-22 08:19:38 +01:00
corsacca
b2975650ec phase 5 2026-04-21 14:41:43 +01:00
corsacca
6f5313f990 init 2026-04-21 12:12:54 +01:00