KirkTranslation
Open SourceShared macOS translation engine and linked bilingual SwiftUI kit.
Overview
KirkTranslation (kirktools/pkg-translation) is the shared Swift Package behind Screenshot and Hotkey, offering both the KirkTranslation engine and KirkTranslationUI components across Apple Translation, ChatGPT auth, and OpenAI-compatible APIs.
Key Features
Unified Multi-Engine Adapter
Bridges Apple on-device Translation (macOS 15+), ChatGPT plan authorization, and OpenAI-compatible APIs with sentence pairing.
Linked Bilingual SwiftUI Component
KirkTranslationUI renders stacked source and translation panes with text selection, editing, and synchronized hover highlighting.
Explicit-Consent Image Analysis
Validates PNG payloads and builds provider requests only after the host app obtains explicit user confirmation.
Isolated Host Authorization
Keeps session files and macOS Keychain entries cleanly scoped per host app and build channel.
Preview
Reusable source/translation view with synchronized sentence hover highlighting.
Installation & Usage
- 1 Requires macOS 14+ deployment target (macOS 15+ for Apple Translation) and Swift 6.0.
- 2 Add https://github.com/kirktools/pkg-translation.git to Package.swift pinned to a SemVer tag.
- 3 Import KirkTranslation and/or KirkTranslationUI in your target.
- 4 Run swift test to execute synthetic response, session, and sentence-pairing tests.
Privacy & Permissions
Read the complete privacy policy, local storage guarantees, and permission details for KirkTranslation.