PhotoAtomic.Internationalization.AI 0.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package PhotoAtomic.Internationalization.AI --version 0.4.0
                    
NuGet\Install-Package PhotoAtomic.Internationalization.AI -Version 0.4.0
                    
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="PhotoAtomic.Internationalization.AI" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PhotoAtomic.Internationalization.AI" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="PhotoAtomic.Internationalization.AI" />
                    
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 PhotoAtomic.Internationalization.AI --version 0.4.0
                    
#r "nuget: PhotoAtomic.Internationalization.AI, 0.4.0"
                    
#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 PhotoAtomic.Internationalization.AI@0.4.0
                    
#: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=PhotoAtomic.Internationalization.AI&version=0.4.0
                    
Install as a Cake Addin
#tool nuget:?package=PhotoAtomic.Internationalization.AI&version=0.4.0
                    
Install as a Cake Tool

PhotoAtomic.Internationalization.AI

AI-powered translation filler for PhotoAtomic.Internationalization: completes the missing entries of your translation catalog in the background, while the application keeps serving the source-language sentence until the translation lands.

Built on Microsoft.Extensions.AI, so it works with OpenAI and any OpenAI-compatible provider. Every translation request carries the structural information the core engine collects — facts, criteria, context, the legend of each placeholder — so the model translates with grammar-aware instructions instead of a bare string.

The grammatical cases a sentence needs are computed here, not left to the model: ValueVocabulary observes which trait combinations the language's already-translated values declare (and a real word for each), VariantCases turns them into the exact list of rows to produce, and each case is asked for by name, one call at a time, with its example word already sitting inside the placeholder. Answers are verified hole by hole and asked again when a placeholder went missing, was invented, or an example word leaked into the template.

When an answer has to be asked for again, the reason travels with the question: TranslationRequest.Feedback reaches the model as the last paragraph of the prompt, because at temperature 0 the same question returns the same defect forever. A call that never arrived is a different failure from an answer that was refused: TransportRetry asks again after a doubling pause when the line broke, timed out or throttled, and gives up immediately on a 4xx that will fail the same way however often it is repeated.

Installing

dotnet add package PhotoAtomic.Internationalization.AI

Kept separate from the core on purpose: PhotoAtomic.Internationalization stays dependency-free, and you add the AI machinery (and its Microsoft.Extensions.AI dependencies) only where you want background fill. For a build-time / CI alternative, the same fill logic is available as the pai18n dotnet tool.

Part of PhotoAtomic.Libraries.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
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
0.6.0 156 8/23/2026
0.5.0 132 8/16/2026
0.4.0 127 8/16/2026
0.3.0 128 8/15/2026
0.2.1 118 8/12/2026
0.2.0 114 8/12/2026
0.1.0 122 8/12/2026