IsoEnums 2026.2.1

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

Enums for ISO languages, countries and currencies

Nuget (with prereleases) GitHub License

Common

All enums have the value 0 as Uninitialized

Values that have been removed recently, will still be available in the enums, but are annotated with the [Obsolete] Attribute

ISO639 Language

The Language enum contains 7391 languages.

// Every language is available in the Language-enum
Language l = Language.English;
// Every Language has a 639-3 3-letter-code
String iso639_3Code = Language.English.Get3Code();  // eng
// A few languages have 2-letter-code
String iso639_2Code = Language.English.Get2Code();  // en
String nonexistant_2Code = Language.Dari.Get2Code();  // ??

// Lookup any language by their code (Char or Byte)
Language english = LanguageHelper.GetLanguageByCode("en");
Language english = LanguageHelper.GetLanguageByCode("en-us");
Language english = LanguageHelper.GetLanguageByCode("eng");

// There are also specific lookups if you know what type you want to look up
Language english = LanguageHelper.GetLanguageBy2Code("en");
Language english = LanguageHelper.GetLanguageBy2Code("en-us");
Language english = LanguageHelper.GetLanguageBy3Code("eng");

// For bulk lookups use the Dictionaries from LanguageHelper
FrozenDictionary<String, Language> lookup = LanguageHelper.CreateFast2CodeLookup();
Language english = lookup["en"];

// The dictionary lookup will not work for language-country lookups
Language english = lookup["en-us"];

There are a few SpecialLanguageCodes as defined by the standard

  • Language.Uninitialized - The zero (0) enum value
  • Language.Uncoded_languages - not used
  • Language.Multiple_languages - not used
  • Language.Undetermined - returned by GetLanguageByCode for unknown language codes
  • Language.No_linguistic_content - not used

ISO3166 Countries

The Country enum contains 252 countries.

ISO4217 Currency

The Currency enum contains 172 currencies.

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.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on IsoEnums:

Package Downloads
Darcara.TextAnalysis

TextAnalysis, sentence spliting, named entity recognition, translation and more

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.2.1 91 2/9/2026
2026.2.0 85 2/2/2026
1.0.0 333 4/23/2025