Skip to content

Release v2.8.4 — localize AI output language + error messages#19

Merged
coaxel2 merged 3 commits into
mainfrom
release/v2.8.4
May 25, 2026
Merged

Release v2.8.4 — localize AI output language + error messages#19
coaxel2 merged 3 commits into
mainfrom
release/v2.8.4

Conversation

@coaxel2
Copy link
Copy Markdown
Owner

@coaxel2 coaxel2 commented May 25, 2026

Fix Digest summary always in French + Shelf 'Apple Intelligence indisponible' string not localized.

Bug 1 : "Apple Intelligence indisponible — …" était en français en dur
dans DocumentSummaryService.swift:37 → toujours affiché en français,
indépendamment du Réglage langue de l'utilisateur. Wrap dans
String(localized:) + entrées xcstrings EN/FR/ES/DE.

Bug 2 : les prompts LLM des features Shelf summary et Digest contenaient
"Réponds en français" / "résumé clair en français" en dur → le modèle
Apple Intelligence répondait toujours en français même si l'app était
configurée en anglais/espagnol/allemand.

Fix : nouvelle property AppLanguage.promptInstruction qui retourne la
phrase d'instruction de langue ("en français", "in English", "en español",
"auf Deutsch"). Pour .system on résout depuis Locale.preferredLanguages.
Injectée dans les 4 LanguageModelSession concernés :
- DocumentSummaryService.summarize (single doc)
- DocumentSummaryService.summarizeCombined (multi docs liés)
- DigestManager prompts (sections Digest)
+ marqueur **LANGUE DE SORTIE OBLIGATOIRE : <lang>.** en fin de chaque
instruction pour ancrer le modèle.

Skip : la relatedness check oui/non interne (modèle parse les instructions
strictes "Réponds par oui ou non" même sous user lang anglais — testé).

Aussi : wrap 6 strings d'unavailability raisons dans DigestManager
qui étaient en raw French (Mac non compatible, désactivée, etc.) +
ajout 7 nouvelles keys xcstrings EN/FR/ES/DE.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@coaxel2
Copy link
Copy Markdown
Owner Author

coaxel2 commented May 25, 2026

/release 2.8.4

@github-actions github-actions Bot added the cori-ai-review Cori AI review label May 25, 2026
@coaxel2 coaxel2 merged commit ab8a545 into main May 25, 2026
1 of 2 checks passed
@coaxel2 coaxel2 deleted the release/v2.8.4 branch May 25, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cori-ai-review Cori AI review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant