Release v2.8.4 — localize AI output language + error messages#19
Merged
Conversation
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>
Owner
Author
|
/release 2.8.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Digest summary always in French + Shelf 'Apple Intelligence indisponible' string not localized.