SwiftBindings.Apple.Translation 26.2.6

dotnet add package SwiftBindings.Apple.Translation --version 26.2.6
                    
NuGet\Install-Package SwiftBindings.Apple.Translation -Version 26.2.6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SwiftBindings.Apple.Translation" Version="26.2.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SwiftBindings.Apple.Translation" Version="26.2.6" />
                    
Directory.Packages.props
<PackageReference Include="SwiftBindings.Apple.Translation" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SwiftBindings.Apple.Translation --version 26.2.6
                    
#r "nuget: SwiftBindings.Apple.Translation, 26.2.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SwiftBindings.Apple.Translation@26.2.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SwiftBindings.Apple.Translation&version=26.2.6
                    
Install as a Cake Addin
#tool nuget:?package=SwiftBindings.Apple.Translation&version=26.2.6
                    
Install as a Cake Tool

SwiftBindings.Apple.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#.

📖 Full usage guide → — requests/responses, sessions, batch translation, language availability, and error handling, with the exact C# names emitted by the generator.

Installation

dotnet add package SwiftBindings.Apple.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 Compatible and additional computed target framework versions.
.NET net10.0-ios26.2 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
26.2.6 43 6/11/2026
26.2.5 103 6/1/2026
26.2.3 97 5/19/2026
26.2.1 101 5/3/2026