feat(translation): per-field language detection for mixed-language posts #205

Merged
bvandeusen merged 1 commits from dev into main 2026-07-08 09:25:24 -04:00
Owner

Ships the one dev-only commit (3c7ab44) to production.

Per-field language detection: each of title/description is detected and translated independently, so a non-English description still gets translated when the title is already English (mixed-language posts) instead of the whole post being skipped on the aggregate first-item detection.

CI-green on dev (run 2057). No migration, no stack-file change required — a plain image redeploy of :latest picks it up.

🤖 Generated with Claude Code

Ships the one dev-only commit (`3c7ab44`) to production. Per-field language detection: each of title/description is detected and translated independently, so a non-English description still gets translated when the title is already English (mixed-language posts) instead of the whole post being skipped on the aggregate first-item detection. CI-green on dev (run 2057). No migration, no stack-file change required — a plain image redeploy of `:latest` picks it up. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bvandeusen added 1 commit 2026-07-08 09:25:16 -04:00
feat(translation): per-field language detection for mixed-language posts
CI / lint (push) Successful in 3s
CI / frontend-build (push) Successful in 20s
CI / backend-lint-and-test (push) Successful in 33s
CI / integration (push) Successful in 3m43s
3c7ab44e74
_translate_one translated [title, description] in ONE Interpreter call and keyed
the whole-post passthrough on the aggregate detected_lang (the FIRST item). So an
English title + non-English description detected "en" and marked the post handled,
leaving the description untranslated. Now each field is translated independently
(its own detected_lang / passthrough) and the non-target field is stored on its
own; translated_source_lang reflects the translated field's language.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
bvandeusen merged commit 934731e9ef into main 2026-07-08 09:25:24 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bvandeusen/FabledCurator#205