Singulink.Globalization.Currency.Cldr 48.2.0

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

Singulink.Globalization.Currency.Cldr

Singulink.Globalization.Currency.Cldr provides currency data from the Unicode Common Locale Data Repository (CLDR) for the Singulink.Globalization.Currency library.

The main library builds its default currency registry from the globalization data that ships with the runtime and operating system. That data is convenient but has limitations: it varies between ICU and NLS and between ICU versions, it only includes currencies that are the primary currency of some region, and it does not contain cash rounding rules. This package embeds a compact copy of the CLDR currency data so that registries behave identically on every runtime and include:

  • Every currency known to CLDR, including current legal tender, non-tender codes like XAU and XDR, and historical currencies.
  • Localized names and symbols for every CLDR locale.
  • Standard rounding rules and cash rounding rules for every currency, so MonetaryValue.RoundToCash() works for currencies like CAD (nearest 0.05), DKK (nearest 0.50) and SEK (whole kronor).

Versioning

This package contains only data and does not depend on the main library, so it can always be updated to the latest CLDR release without changing the version of the main library that is used. The package version mirrors the CLDR version that the data was generated from, so 48.0.0 contains CLDR 48 data and 48.1.0 contains CLDR 48.1 data. A fourth version component is only added if the package is republished with the same data. The CLDR version and release date are also available at runtime via CldrCurrencyData.CldrVersion and CldrCurrencyData.CldrReleaseDate.

Usage

Register the CLDR data as the default registry once at application startup, before any currencies or monetary values are used:

CurrencyRegistry.SetDefaultProvider(CldrCurrencyData.Provider);

var price = new MonetaryValue(10.03m, "CAD");
price.RoundToCash(); // CAD 10.05

By default the registry contains currencies that are currently legal tender. Other currency types can be included as well:

CurrencyRegistry.SetDefaultProvider(CldrCurrencyData.Provider, CurrencyTypes.CurrentTender | CurrencyTypes.CurrentNonTender);

The data can also be used directly without changing the default registry:

var cldr = CurrencyData.Load(CldrCurrencyData.Provider);

var registry = cldr.Registry;                                   // Current legal tender, cached
var historical = cldr.CreateRegistry(CurrencyTypes.Historical); // Currencies no longer in use
var gold = cldr.AllCurrencies.First(c => c.CurrencyCode == "XAU");

License

CLDR data is provided by the Unicode Consortium under the Unicode License. The library itself is MIT licensed.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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 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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
48.2.0 52 9/29/2026
48.0.0 46 9/29/2026

CLDR 48.2.0 data, released 2026-03-18.