PhotoAtomic.Internationalization.SourceGen 0.6.0

dotnet add package PhotoAtomic.Internationalization.SourceGen --version 0.6.0
                    
NuGet\Install-Package PhotoAtomic.Internationalization.SourceGen -Version 0.6.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.SourceGen" Version="0.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PhotoAtomic.Internationalization.SourceGen" Version="0.6.0" />
                    
Directory.Packages.props
<PackageReference Include="PhotoAtomic.Internationalization.SourceGen" />
                    
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.SourceGen --version 0.6.0
                    
#r "nuget: PhotoAtomic.Internationalization.SourceGen, 0.6.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.SourceGen@0.6.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.SourceGen&version=0.6.0
                    
Install as a Cake Addin
#tool nuget:?package=PhotoAtomic.Internationalization.SourceGen&version=0.6.0
                    
Install as a Cake Tool

PhotoAtomic.Internationalization.SourceGen

Opt-in compile-time companion for PhotoAtomic.Internationalization: a Roslyn source generator that scans your T($"...") call sites and builds the translation catalog at build time, plus an analyzer that keeps the call sites honest.

What you get

  • Catalog generation — every translatable sentence in your code (Razor included) becomes a catalog entry with its structural key, facts and context, ready for the translation store and for the pai18n pre-translation workflow. No runtime scanning, no missed sentences.
  • Analyzer PAI18N001 — warns when a context: argument cannot be resolved at compile time (it understands literals, constants, ternaries, switch expressions and single-assignment locals), so catalog and runtime can never disagree silently.

Installing

dotnet add package PhotoAtomic.Internationalization           # the runtime core
dotnet add package PhotoAtomic.Internationalization.SourceGen # this analyzer

The split is deliberate: the core works fine on its own at runtime, and you only pay for the build-time machinery in projects that want the compile-time catalog. This package is an analyzer — it runs inside the compiler and adds no runtime dependency of its own.

Part of PhotoAtomic.Libraries.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

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 77 8/23/2026
0.5.0 108 8/16/2026
0.4.0 89 8/16/2026
0.3.0 84 8/15/2026
0.2.1 88 8/12/2026
0.2.0 84 8/12/2026
0.1.0 86 8/12/2026