Kirk Dev
中文

KirkTranslation

Open Source

Shared macOS translation engine and linked bilingual SwiftUI kit.

Swift Package
Apple Translation Linked Bilingual UI Image Analysis Swift 6 Swift Package SwiftUI macOS 14+ MIT

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

01

Unified Multi-Engine Adapter

Bridges Apple on-device Translation (macOS 15+), ChatGPT plan authorization, and OpenAI-compatible APIs with sentence pairing.

02

Linked Bilingual SwiftUI Component

KirkTranslationUI renders stacked source and translation panes with text selection, editing, and synchronized hover highlighting.

03

Explicit-Consent Image Analysis

Validates PNG payloads and builds provider requests only after the host app obtains explicit user confirmation.

04

Isolated Host Authorization

Keeps session files and macOS Keychain entries cleanly scoped per host app and build channel.

Preview

KirkTranslation
KirkTranslationUI Bilingual Pane Screenshots coming soon
KirkTranslationUI Bilingual Pane

Reusable source/translation view with synchronized sentence hover highlighting.

Installation & Usage

  1. 1 Requires macOS 14+ deployment target (macOS 15+ for Apple Translation) and Swift 6.0.
  2. 2 Add https://github.com/kirktools/pkg-translation.git to Package.swift pinned to a SemVer tag.
  3. 3 Import KirkTranslation and/or KirkTranslationUI in your target.
  4. 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.

Read Privacy Policy