Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alexibraimov committed Aug 11, 2023
2 parents 10af632 + fd1c503 commit 3013f71
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ name: ISOLib

on:
push:
paths:
- 'src/**'
branches: [ main ]
pull_request:
paths:
- 'src/**'
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['6.0.x']
dotnet-version: ['7.0.x']
steps:
- uses: actions/checkout@v2
- name: Setup .NET
Expand Down
38 changes: 33 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 |
| ... | ... | ... | ... |

2 changes: 1 addition & 1 deletion src/ISO.Tests/ISO.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;</TargetFrameworks>
<TargetFrameworks>net7.0;</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/ISO/ISO.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<PackageTags>ISO,ISO3166,ISO639,ISO4217,639,3166,4217,Languages,Countries,Currencies,Language,Country,Currency</PackageTags>
<RepositoryUrl>https://github.com/AlexanderIbraimov/ISO.csharp</RepositoryUrl>
<NeutralLanguage>en</NeutralLanguage>
<Version>2.1.0</Version>
<Version>2.1.1</Version>
</PropertyGroup>
</Project>

0 comments on commit 3013f71

Please sign in to comment.