name: translation-framework description: Use when adding Apple Translation framework UI, custom sessions, language availability checks, or batch translation.
Translation
Review and write Translation framework code for correct language availability checking, translation UI, and session management.
Responsibility
Owns: translationPresentation modifier, translationTask modifier, TranslationSession, LanguageAvailability, batch translation, language pair support.
Does NOT own: Localization (localization skill), Natural Language framework (text analysis), FoundationModels (LLM generation), string catalogs.
Core Principles
- Check availability before offering translation. Not all language pairs are available. Use LanguageAvailability first.
- System UI is simplest. Use
translationPresentationfor the built-in translation overlay — zero custom UI needed. - Custom sessions for control. Use
translationTaskwhen you need programmatic access to translation results. - Batch for efficiency. Translate multiple strings in one session call rather than one at a time.
References
references/translation-patterns.md— System UI, custom sessions, language availability, batch translation