Nameless.Localization.Json 3.4.7

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

Nameless Localization Json

JSON based file localization library for Microsoft Extensions Localization.

How To Use It

// Using IServiceCollection

services.AddJsonLocalization(new LocalizationOptions {
    // The folder where the translation files should be looked for.
    // Will be combined with the current Microsoft.Extensions.FileProviders.IFileProvider
    // instance root path. So, make sure to add it to your services.
    ResourcesDirectoryName = "Localization",

    // Whether it will watch the translation files for changes
    // and reload if necessary.
    WatchFileForChanges = true
});

How It Works Internally

It will look for any JSON file, inside the specified folder, that's named with the culture (ISO) you'd like to use.

E.g.

    en-US.json
    pt-BR.json
    en-EN.json

If WatchFileForChanges is true then any change to the translation files will cause a reload in the translation system, but only for the specific translation.

How Translation File Should Looks Like

    {
        "Culture": "pt-BR",
        "Regions": [
            {
                "Name": "[ASSEMBLY_NAME] TYPE_FULLNAME",
                "Messages": [
                    {
                        "ID": "Original Text",
                        "Text": "Translated Text"
                    },
                ]
            },
        ],
    }
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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
3.4.9 168 9/24/2025
3.4.8 222 9/15/2025
3.4.7 189 9/4/2025
3.4.6 188 9/4/2025
3.4.5 181 9/2/2025
3.4.4 203 8/30/2025
3.4.3 211 8/30/2025
3.4.2 110 8/23/2025
3.4.1 175 8/17/2025
3.4.0 154 8/17/2025
3.3.5 191 2/20/2025