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
<PackageReference Include="Singulink.Globalization.Currency.Cldr" Version="48.2.0" />
<PackageVersion Include="Singulink.Globalization.Currency.Cldr" Version="48.2.0" />
<PackageReference Include="Singulink.Globalization.Currency.Cldr" />
paket add Singulink.Globalization.Currency.Cldr --version 48.2.0
#r "nuget: Singulink.Globalization.Currency.Cldr, 48.2.0"
#:package Singulink.Globalization.Currency.Cldr@48.2.0
#addin nuget:?package=Singulink.Globalization.Currency.Cldr&version=48.2.0
#tool nuget:?package=Singulink.Globalization.Currency.Cldr&version=48.2.0
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
XAUandXDR, 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 likeCAD(nearest 0.05),DKK(nearest 0.50) andSEK(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 | Versions 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. |
-
.NETStandard 2.0
-
net10.0
-
net8.0
-
net9.0
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
CLDR 48.2.0 data, released 2026-03-18.