diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1aa7404..ae3a83d 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -2,8 +2,12 @@ name: ISOLib on: push: + paths: + - 'src/**' branches: [ main ] pull_request: + paths: + - 'src/**' branches: [ main ] jobs: @@ -11,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - dotnet-version: ['6.0.x'] + dotnet-version: ['7.0.x'] steps: - uses: actions/checkout@v2 - name: Setup .NET diff --git a/README.md b/README.md index 67f7ec8..6f2e3df 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ A library that provides access to ISO standards, including ISO 639 (language cod [![NuGet version (ISOLib)](https://img.shields.io/nuget/v/ISOLib.svg?style=flat-square)](https://www.nuget.org/packages/ISOLib/) [![ISOLib](https://github.com/AlexanderIbraimov/ISO.csharp/actions/workflows/dotnet.yml/badge.svg)](https://github.com/AlexanderIbraimov/ISO.csharp/actions/workflows/dotnet.yml) +[![NuGet Downloads](https://img.shields.io/nuget/dt/ISOLib.svg)](https://www.nuget.org/packages/ISOLib) ### Usage @@ -72,10 +73,37 @@ class Language ```csharp class Currency { - string Name { get; } - string Alpha2 { get; } - string Alpha3 { get; } - string Number { get; } - int MinorUnit { get; } + public string Name { get; } + public string Alpha2 { get; } + public string Alpha3 { get; } + public string Number { get; } + public int MinorUnit { get; } } ``` +# List of Countries +| Alpha-2 | Alpha-3 | Name | Capital | Continent | Phone Codes | Currency Codes | Languages | Flag | Wikipedia | +|---------|---------|--------------------|------------|-----------|-------------|----------------|------------|------|-----------| +| AF | AFG | Afghanistan | Kabul | Asia | +93 | AFN | ps, uz, tk | 🇦🇫 | [Link](https://en.wikipedia.org/wiki/ISO_3166-2:AF) | +| AX | ALA | Åland Islands | Mariehamn | Europe | +358 | EUR | sv | 🇦🇽 | [Link](https://en.wikipedia.org/wiki/ISO_3166-2:AX) | +| AL | ALB | Albania | Tirana | Europe | +355 | ALL | sq | 🇦🇱 | [Link](https://en.wikipedia.org/wiki/ISO_3166-2:AL) | +| DZ | DZA | Algeria | Algiers | Africa | +213 | DZD | ar | 🇩🇿 | [Link](https://en.wikipedia.org/wiki/ISO_3166-2:DZ) | +| ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | + +# List of Languages +| Alpha-2 | Alpha-3 | Name | Native Name | Family | +|---------|---------|---------------|-------------|---------------------| +| aa | aar | Afar | Afar | Afro-Asiatic | +| ab | abk | Abkhaz | Аҧсуа | Northwest Caucasian | +| ae | ave | Avestan | avesta | Indo-European | +| af | afr | Afrikaans | Afrikaans | Indo-European | +| ... | ... | ... | ... | ... | + +# List of Currencies +| Alpha-3 | Name | Number | Minor Unit | +|---------|---------------------------------|--------|------------| +| AED | United Arab Emirates dirham | 784 | 2 | +| AFN | Afghan afghani | 971 | 2 | +| ALL | Albanian lek | 8 | 2 | +| AMD | Armenian dram | 51 | 2 | +| ... | ... | ... | ... | + diff --git a/src/ISO.Tests/ISO.Tests.csproj b/src/ISO.Tests/ISO.Tests.csproj index 85097c2..9b7889b 100644 --- a/src/ISO.Tests/ISO.Tests.csproj +++ b/src/ISO.Tests/ISO.Tests.csproj @@ -1,6 +1,6 @@  - net6.0; + net7.0; diff --git a/src/ISO/ISO.csproj b/src/ISO/ISO.csproj index 5fbcc88..42a3168 100644 --- a/src/ISO/ISO.csproj +++ b/src/ISO/ISO.csproj @@ -9,6 +9,6 @@ ISO,ISO3166,ISO639,ISO4217,639,3166,4217,Languages,Countries,Currencies,Language,Country,Currency https://github.com/AlexanderIbraimov/ISO.csharp en - 2.1.0 + 2.1.1