SwiftBindings.Translation
26.2.0
SwiftBindings.Apple.Translation
Additional DetailsMigrating to new namespace, adding ".Apple" for better discoverability and identity.
dotnet add package SwiftBindings.Translation --version 26.2.0
NuGet\Install-Package SwiftBindings.Translation -Version 26.2.0
<PackageReference Include="SwiftBindings.Translation" Version="26.2.0" />
<PackageVersion Include="SwiftBindings.Translation" Version="26.2.0" />
<PackageReference Include="SwiftBindings.Translation" />
paket add SwiftBindings.Translation --version 26.2.0
#r "nuget: SwiftBindings.Translation, 26.2.0"
#:package SwiftBindings.Translation@26.2.0
#addin nuget:?package=SwiftBindings.Translation&version=26.2.0
#tool nuget:?package=SwiftBindings.Translation&version=26.2.0
SwiftBindings.Translation
Native .NET bindings for Apple's Translation framework — on-device language translation and language-availability queries. These are not Objective-C proxy wrappers; they use .NET 10's native Swift interop for direct, high-performance calls into Swift APIs from C#.
Installation
dotnet add package SwiftBindings.Translation
Requirements
- .NET 10.0+
- iOS 26.2+
- macOS host for development
Usage
using Translation;
// Translate a single string
var request = new TranslationSession.Request("Hello, world!");
var sourceText = request.SourceText; // "Hello, world!"
var clientId = request.ClientIdentifier; // optional correlation id
// Inspect availability metadata
var availability = new LanguageAvailability();
// Errors
var error = TranslationError.UnsupportedLanguagePairing;
var description = error.ErrorDescription;
var reason = error.FailureReason;
TranslationSession, LanguageAvailability, and the TranslationError cases are all bound; the Swift-side TranslationSession is driven by the SwiftUI .translationTask modifier — refer to Apple's documentation for the full request/response lifecycle.
Documentation
How It Works
These bindings are auto-generated by Swift Dotnet Bindings using .NET 10's native Swift interop via the SwiftBindings SDK.
License
The bindings are MIT licensed. Translation is part of the Apple SDK; refer to Apple's licensing for the underlying framework.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-ios26.2 is compatible. |
-
net10.0-ios26.2
- SwiftBindings.Apple (>= 26.2.0)
- SwiftBindings.Runtime (>= 0.8.0 && < 0.9.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|