Commit Graph
5 Commits
Author SHA1 Message Date
LeoVasanko f6eef1c75f Document the translator WebSocket API and reference client 2026-09-02 03:30:36 +00:00
LeoVasanko 10c4c9c4f9 Translator service API: GET/POST /_api/translate/{lang} 2026-09-02 02:16:28 +00:00
LeoVasanko cc750236bc Chunk keys as 9-byte bytes digests; trans nested by hash -> lang 2026-09-02 02:09:27 +00:00
LeoVasanko f63bb2c482 Mark phase-2 localization storage implemented; list chunks.py in AGENTS.md 2026-09-02 01:48:47 +00:00
LeoVasanko 218313ba7a Phase 1: content negotiation (?lang=, Accept-Language) + localization/migration design docs
- pagerite/i18n.py: parse_accept_language, select_language, Translation struct,
  get_translation/available_languages stubs
- app.py: language threaded through show_page/_render_html/_cached_body,
  ETag and Vary: accept-language
- views.py: <html lang>, translated nav titles with fallback, canonical
  with ?lang=, hreflang alternates
- pagerite.js: strip ?lang= via replaceState, send it as Accept-Language
  on fetch-navigation/preloads, lang-aware page cache
- docs/localization.md: negotiation + URL scheme + phase-2 fragment model
- docs/migrate.md: migrate_v3 content-addressed chunk storage plan
2026-09-02 01:14:10 +00:00