PSC.CSharp.Library.LanguageData
8.0.5
dotnet add package PSC.CSharp.Library.LanguageData --version 8.0.5
NuGet\Install-Package PSC.CSharp.Library.LanguageData -Version 8.0.5
<PackageReference Include="PSC.CSharp.Library.LanguageData" Version="8.0.5" />
paket add PSC.CSharp.Library.LanguageData --version 8.0.5
#r "nuget: PSC.CSharp.Library.LanguageData, 8.0.5"
// Install PSC.CSharp.Library.LanguageData as a Cake Addin #addin nuget:?package=PSC.CSharp.Library.LanguageData&version=8.0.5 // Install PSC.CSharp.Library.LanguageData as a Cake Tool #tool nuget:?package=PSC.CSharp.Library.LanguageData&version=8.0.5
Language Data Library for C#
This library is a comprehensive language code information, consisting of ISO 639-1, ISO 639-2 and IETF language types for C#.
Install Library
To install the library in your project, open the Package Manager and type the following command:
Install-Package PSC.CSharp.Library.LanguageData
Also, you can use the .NET CLI to install the library. Type the following command:
dotnet add package PSC.CSharp.Library.LanguageData
Usage
Here is an example how to use the library in your project.
Initialize the LanguageData
using PSC.CSharp.Library.LanguageData;
// loads all Language Data via the constructor (You can initialize this once as a singleton)
var languageHelper = new LanguageHelper();
Function
Function | Return | Description |
---|---|---|
GetLanguage | Language? | Return all the details for a specific language |
GetLanguageCode6392B | string? | Return the value of ISO 639-2 B for a specific code language |
GetLanguageCode6392T | string? | Return the value of ISO 639-2 T for a specific code language |
GetLanguageDirection | string? | Return the direction for a specific code language (ltr or rtl) |
GetLanguageName | string? | Return the language name for a specific code language |
GetLanguageNative | string? | Return the native language name for a specific code language |
GetLanguages | string? | Return the full list of languages with all the details |
GetLanguageScript | string? | Return the script type for a specific code language (ie. Latn) |
Data
Data is taken from the Library of Congress as the ISO 639-2 Registration Authority, and from the Unicode Common Locale Data Repository.
Columns
- ShortCode is ISO 639-1 (alpha 2 / two letter)
- Code6392T is ISO 639-2 (alpha 3 / three letter) bibliographic codes and ISO 639-1 codes
- Code6392B is ISO 639-2 (alpha 3 / three letter) bibliographic codes and ISO 639-1 codes
- LanguageName is the name of the language in English
- LanguageNative is the name of the language in its native language
- Direction is the direction of the language (ltr or rtl)
- Script is the type of script of the language if it is known
Code explanation
There are two versions of the three letter codes: bibliographic and terminologic. Each language has a bibliographic code but only a few languages have terminologic codes. Terminologic codes are chosen to be similar to the corresponding ISO 639-1 two letter codes.
Example from Wikipedia:
[...] the German language (Part 1:
de
) has two codes in Part 2:ger
(T code) anddeu
(B code), whereas there is only one code in Part 2,eng
, for the English language.
There are four special codes: mul, und, mis, zxx; and a reserved range qaa-qtz.
Language table
ShortCode | Code (639-2 B) | Code6392B (639-2 T) | LanguageName | LanguageNative | Direction | Script |
---|---|---|---|---|---|---|
aa | aar | aar | Afar | Afaraf | ltr | |
ab | abk | abk | Abkhaz | аҧсуа бызшәа, аҧсшәа | ltr | Cyrl |
ae | ave | ave | Avestan | avesta | ||
af | afr | afr | Afrikaans | Afrikaans | ltr | Latn |
ak | aka | aka | Akan | Akan | ltr | |
am | amh | amh | Amharic | አማርኛ | ltr | Ethi |
an | arg | arg | Aragonese | aragonés | ltr | |
ar | ara | ara | Arabic | العربية | rtl | Arab |
as | asm | asm | Assamese | অসমীয়া | ltr | Beng |
av | ava | ava | Avaric | авар мацӀ, магӀарул мацӀ | ltr | |
ay | aym | aym | Aymara | aymar aru | ltr | Latn |
az | aze | aze | Azerbaijani | azərbaycan dili | ltr | |
az | azb | azb | South Azerbaijani | تورکجه | ltr | |
ba | bak | bak | Bashkir | башҡорт теле | ltr | |
be | bel | bel | Belarusian | беларуская мова | ltr | Cyrl |
bg | bul | bul | Bulgarian | български език | ltr | Cyrl |
bh | bih | bih | Bihari | भोजपुरी | ltr | |
bi | bis | bis | Bislama | Bislama | ltr | |
bm | bam | bam | Bambara | bamanankan | ltr | |
bn | ben | ben | Bengali; Bangla | বাংলা | ltr | Beng |
bo | bod | tib | Tibetan Standard, Tibetan, Central | བོད་ཡིག | ltr | |
br | bre | bre | Breton | brezhoneg | ltr | |
bs | bos | bos | Bosnian | bosanski jezik | ltr | Latn |
ca | cat | cat | Catalan; Valencian | català, valencià | ltr | Latn |
ce | che | che | Chechen | нохчийн мотт | ltr | |
ch | cha | cha | Chamorro | Chamoru | ltr | Latn |
co | cos | cos | Corsican | corsu, lingua corsa | ltr | |
cr | cre | cre | Cree | ᓀᐦᐃᔭᐍᐏᐣ | ltr | |
cs | ces | cze | Czech | čeština, český jazyk | ltr | Latn |
cu | chu | chu | Old Church Slavonic, Church Slavonic, Old Bulgarian | ѩзыкъ словѣньскъ | ltr | |
cv | chv | chv | Chuvash | чӑваш чӗлхи | ltr | |
cy | cym | wel | Welsh | Cymraeg | ltr | Latn |
da | dan | dan | Danish | dansk | ltr | Latn |
de | deu | ger | German | Deutsch | ltr | Latn |
dv | div | div | Divehi; Dhivehi; Maldivian; | ދިވެހި | rtl | Thaa |
dz | dzo | dzo | Dzongkha | རྫོང་ཁ | ltr | Tibt |
ee | ewe | ewe | Ewe | Eʋegbe | ltr | |
el | ell | gre | Greek, Modern | ελληνικά | ltr | Grek |
en | eng | eng | English | English | ltr | Latn |
eo | epo | epo | Esperanto | Esperanto | ltr | Latn |
es | spa | spa | Spanish; Castilian | español, castellano | ltr | Latn |
et | est | est | Estonian | eesti, eesti keel | ltr | Latn |
eu | eus | baq | Basque | euskara, euskera | ltr | Latn |
fa | fas | per | Persian (Farsi) | فارسی | rtl | Arab |
ff | ful | ful | Fula; Fulah; Pulaar; Pular | Fulfulde, Pulaar, Pular | ltr | |
fi | fin | fin | Finnish | suomi, suomen kieli | ltr | Latn |
fj | fij | fij | Fijian | vosa Vakaviti | ltr | Latn |
fo | fao | fao | Faroese | føroyskt | ltr | Latn |
fr | fra | fre | French | français, langue française | ltr | Latn |
fy | fry | fry | Western Frisian | Frysk | ltr | Latn |
ga | gle | gle | Irish | Gaeilge | ltr | Latn |
gd | gla | gla | Scottish Gaelic; Gaelic | Gàidhlig | ltr | |
gl | glg | glg | Galician | galego | ltr | Latn |
gn | grn | grn | Guaraní | Avañe'ẽ | ltr | Latn |
gu | guj | guj | Gujarati | ગુજરાતી | ltr | Gujr |
gv | glv | glv | Manx | Gaelg, Gailck | ltr | Latn |
ha | hau | hau | Hausa | Hausa, هَوُسَ | rtl | |
he | heb | heb | Hebrew (modern) | עברית | rtl | Hebr |
hi | hin | hin | Hindi | हिन्दी, हिंदी | ltr | Deva |
ho | hmo | hmo | Hiri Motu | Hiri Motu | ltr | |
hr | hrv | hrv | Croatian | hrvatski jezik | ltr | Latn |
ht | hat | hat | Haitian; Haitian Creole | Kreyòl ayisyen | ltr | Latn |
hu | hun | hun | Hungarian | magyar | ltr | Latn |
hy | hye | arm | Armenian | Հայերեն | ltr | Armn |
hz | her | her | Herero | Otjiherero | ltr | |
ia | ina | ina | Interlingua | Interlingua | ltr | |
id | ind | ind | Indonesian | Bahasa Indonesia | ltr | Latn |
ie | ile | ile | Interlingue | Originally called Occidental; then Interlingue after WWII | ltr | |
ig | ibo | ibo | Igbo | Asụsụ Igbo | ltr | |
ii | iii | iii | Nuosu | ꆈꌠ꒿ Nuosuhxop | ltr | |
ik | ipk | ipk | Inupiaq | Iñupiaq, Iñupiatun | ltr | |
io | ido | ido | Ido | Ido | ltr | |
is | isl | ice | Icelandic | Íslenska | ltr | Latn |
it | ita | ita | Italian | italiano | ltr | Latn |
iu | iku | iku | Inuktitut | ᐃᓄᒃᑎᑐᑦ | ltr | |
ja | jpn | jpn | Japanese | 日本語 (にほんご) | ltr | Jpan |
jv | jav | jav | Javanese | basa Jawa | ltr | |
ka | kat | geo | Georgian | ქართული | ltr | Geor |
kg | kon | kon | Kongo | KiKongo | ltr | |
ki | kik | kik | Kikuyu, Gikuyu | Gĩkũyũ | ltr | |
kj | kua | kua | Kwanyama, Kuanyama | Kuanyama | ltr | |
kk | kaz | kaz | Kazakh | қазақ тілі | ltr | Cyrl |
kl | kal | kal | Kalaallisut, Greenlandic | kalaallisut, kalaallit oqaasii | ltr | Latn |
km | khm | khm | Khmer | ខ្មែរ, ខេមរភាសា, ភាសាខ្មែរ | ltr | Khmr |
kn | kan | kan | Kannada | ಕನ್ನಡ | ltr | Knda |
ko | kor | kor | Korean | 한국어 (韓國語), 조선어 (朝鮮語) | ltr | Kore |
kr | kau | kau | Kanuri | Kanuri | ltr | |
ks | kas | kas | Kashmiri | कश्मीरी, كشميري | rtl | |
ku | kur | kur | Kurdish | Kurdî, كوردی | rtl | |
kv | kom | kom | Komi | коми кыв | ltr | |
kw | cor | cor | Cornish | Kernewek | ltr | |
ky | kir | kir | Kyrgyz | Кыргызча, Кыргыз тили | ltr | |
la | lat | lat | Latin | latine, lingua latina | ltr | Latn |
lb | ltz | ltz | Luxembourgish, Letzeburgesch | Lëtzebuergesch | ltr | Latn |
lg | lug | lug | Ganda | Luganda | ltr | |
li | lim | lim | Limburgish, Limburgan, Limburger | Limburgs | ltr | |
ln | lin | lin | Lingala | Lingála | ltr | Latn |
lo | lao | lao | Lao | ພາສາລາວ | ltr | Laoo |
lt | lit | lit | Lithuanian | lietuvių kalba | ltr | Latn |
lu | lub | lub | Luba-Katanga | Tshiluba | ||
lv | lav | lav | Latvian | latviešu valoda | ltr | Latn |
mg | mlg | mlg | Malagasy | fiteny malagasy | ltr | Latn |
mh | mah | mah | Marshallese | Kajin M̧ajeļ | ltr | Latn |
mi | mri | mao | Māori | te reo Māori | ltr | |
mk | mkd | mac | Macedonian | македонски јазик | ltr | Cyrl |
ml | mal | mal | Malayalam | മലയാളം | ltr | Mlym |
mn | mon | mon | Mongolian | монгол | ltr | |
mr | mar | mar | Marathi (Marāṭhī) | मराठी | ltr | Deva |
ms | msa | may | Malay | bahasa Melayu, بهاس ملايو | ltr | Latn |
mt | mlt | mlt | Maltese | Malti | ltr | Latn |
my | mya | bur | Burmese | ဗမာစာ | ltr | Mymr |
na | nau | nau | Nauru | Ekakairũ Naoero | ltr | Latn |
nb | nob | nob | Norwegian Bokmål | Norsk bokmål | ltr | Latn |
nd | nde | nde | North Ndebele | isiNdebele | ltr | Latn |
ne | nep | nep | Nepali | नेपाली | ltr | Deva |
ng | ndo | ndo | Ndonga | Owambo | ltr | |
nl | nld | dut | Dutch | Nederlands, Vlaams | ltr | Latn |
nn | nno | nno | Norwegian Nynorsk | Norsk nynorsk | ltr | Latn |
no | nor | nor | Norwegian | Norsk | ltr | Latn |
nr | nbl | nbl | South Ndebele | isiNdebele | ltr | Latn |
nv | nav | nav | Navajo, Navaho | Diné bizaad, Dinékʼehǰí | ltr | |
ny | nya | nya | Chichewa; Chewa; Nyanja | chiCheŵa, chinyanja | ltr | Latn |
oc | oci | oci | Occitan | occitan, lenga d'òc | ltr | |
oj | oji | oji | Ojibwe, Ojibwa | ᐊᓂᔑᓈᐯᒧᐎᓐ | ltr | |
om | orm | orm | Oromo | Afaan Oromoo | ltr | Latn |
or | ori | ori | Oriya | ଓଡ଼ିଆ | ltr | Orya |
os | oss | oss | Ossetian, Ossetic | ирон æвзаг | ltr | |
pa | pan | pan | Panjabi, Punjabi | ਪੰਜਾਬੀ, پنجابی | ltr | Guru |
pi | pli | pli | Pāli | पाऴि | ltr | |
pl | pol | pol | Polish | język polski, polszczyzna | ltr | Latn |
ps | pus | pus | Pashto, Pushto | پښتو | rtl | Arab |
pt | por | por | Portuguese | português | ltr | Latn |
qu | que | que | Quechua | Runa Simi, Kichwa | ltr | Latn |
rm | roh | roh | Romansh | rumantsch grischun | ltr | Latn |
rn | run | run | Kirundi | Ikirundi | ltr | Latn |
ro | ron | rum | Romanian | limba română | ltr | Latn |
ru | rus | rus | Russian | русский язык | ltr | Cyrl |
rw | kin | kin | Kinyarwanda | Ikinyarwanda | ltr | Latn |
sa | san | san | Sanskrit (Saṁskṛta) | संस्कृतम् | ltr | |
sc | srd | srd | Sardinian | sardu | ltr | |
sd | snd | snd | Sindhi | सिन्धी, سنڌي، سندھی | ltr | |
se | sme | sme | Northern Sami | Davvisámegiella | ltr | |
sg | sag | sag | Sango | yângâ tî sängö | ltr | Latn |
si | sin | sin | Sinhala, Sinhalese | සිංහල | ltr | Sinh |
sk | slk | slo | Slovak | slovenčina, slovenský jazyk | ltr | Latn |
sl | slv | slv | Slovene | slovenski jezik, slovenščina | ltr | Latn |
sm | smo | smo | Samoan | gagana fa'a Samoa | ltr | Latn |
sn | sna | sna | Shona | chiShona | ltr | |
so | som | som | Somali | Soomaaliga, af Soomaali | ltr | Latn |
sq | sqi | alb | Albanian | gjuha shqipe | ltr | Latn |
sr | srp | srp | Serbian | српски језик | ltr | |
ss | ssw | ssw | Swati | SiSwati | ltr | Latn |
st | sot | sot | Southern Sotho | Sesotho | ltr | Latn |
su | sun | sun | Sundanese | Basa Sunda | ltr | |
sv | swe | swe | Swedish | Svenska | ltr | Latn |
sw | swa | swa | Swahili | Kiswahili | ltr | Latn |
ta | tam | tam | Tamil | தமிழ் | ltr | Taml |
te | tel | tel | Telugu | తెలుగు | ltr | Telu |
tg | tgk | tgk | Tajik | тоҷикӣ, toğikī, تاجیکی | ltr | |
th | tha | tha | Thai | ไทย | ltr | Thai |
ti | tir | tir | Tigrinya | ትግርኛ | ltr | Ethi |
tk | tuk | tuk | Turkmen | Türkmen, Түркмен | ltr | |
tl | tgl | tgl | Tagalog | Wikang Tagalog, ᜏᜒᜃᜅ᜔ ᜆᜄᜎᜓᜄ᜔ | ltr | Latn |
tn | tsn | tsn | Tswana | Setswana | ltr | Latn |
to | ton | ton | Tonga (Tonga Islands) | faka Tonga | ltr | Latn |
tr | tur | tur | Turkish | Türkçe | ltr | Latn |
ts | tso | tso | Tsonga | Xitsonga | ltr | Latn |
tt | tat | tat | Tatar | татар теле, tatar tele | ltr | |
tw | twi | twi | Twi | Twi | ltr | |
ty | tah | tah | Tahitian | Reo Tahiti | ltr | |
ug | uig | uig | Uyghur, Uighur | Uyƣurqə, ئۇيغۇرچە | ltr | |
uk | ukr | ukr | Ukrainian | українська мова | ltr | Cyrl |
ur | urd | urd | Urdu | اردو | rtl | Arab |
uz | uzb | uzb | Uzbek | O‘zbek, Ўзбек, أۇزبېك | ltr | |
ve | ven | ven | Venda | Tshivenḓa | ltr | Latn |
vi | vie | vie | Vietnamese | Tiếng Việt | ltr | Latn |
vo | vol | vol | Volapük | Volapük | ltr | |
wa | wln | wln | Walloon | walon | ltr | |
wo | wol | wol | Wolof | Wollof | ltr | |
xh | xho | xho | Xhosa | isiXhosa | ltr | Latn |
yi | yid | yid | Yiddish | ייִדיש | rtl | Hebr |
yo | yor | yor | Yoruba | Yorùbá | ltr | |
za | zha | zha | Zhuang, Chuang | Saɯ cueŋƅ, Saw cuengh | ltr | |
zh | zho | chi | Chinese | 中文 (Zhōngwén), 汉语, 漢語 | ltr | |
zu | zul | zul | Zulu | isiZulu | ltr | Latn |
PureSourceCode.com
PureSourceCode.com is my personal blog where I publish posts about technologies and in particular source code and projects in .NET.
In the last few months, I created a lot of components for Blazor WebAssembly and Blazor Server.
My name is Enrico Rossini and you can contact me via:
Blazor Components
Component name | Forum | NuGet | Website | Description |
---|---|---|---|---|
AnchorLink | Forum | An anchor link is a web link that allows users to leapfrog to a specific point on a website page. It saves them the need to scroll and skim read and makes navigation easier. This component is for Blazor WebAssembly and Blazor Server | ||
Autocomplete for Blazor | Forum | Simple and flexible autocomplete type-ahead functionality for Blazor WebAssembly and Blazor Server | ||
Browser Detect for Blazor | Forum | Demo | Browser detect for Blazor WebAssembly and Blazor Server | |
ChartJs for Blazor | Forum | Demo | Add beautiful graphs based on ChartJs in your Blazor application | |
Clippy for Blazor | Forum | Demo | Do you miss Clippy? Here the implementation for Blazor | |
CodeSnipper for Blazor | Forum | Add code snippet in your Blazor pages for 196 programming languages with 243 styles | ||
Copy To Clipboard | Forum | Add a button to copy text in the clipboard | ||
DataTable for Blazor | Forum | Demo | DataTable component for Blazor WebAssembly and Blazor Server | |
Google Tag Manager | Forum | Demo | Adds Google Tag Manager to the application and manages communication with GTM JavaScript (data layer). | |
Icons and flags for Blazor | Forum | Library with a lot of SVG icons and SVG flags to use in your Razor pages | ||
ImageSelect for Blazor | Forum | This is a Blazor component to display a dropdown list with images based on ms-Dropdown by Marghoob Suleman. This component is built with NET7 for Blazor WebAssembly and Blazor Server | ||
Markdown editor for Blazor | Forum | Demo | This is a Markdown Editor for use in Blazor. It contains a live preview as well as an embeded help guide for users. | |
Modal dialog for Blazor | Forum | Simple Modal Dialog for Blazor WebAssembly | ||
Modal windows for Blazor | Forum | Modal Windows for Blazor WebAssembly | ||
Quill for Blazor | Forum | Quill Component is a custom reusable control that allows us to easily consume Quill and place multiple instances of it on a single page in our Blazor application | ||
ScrollTabs | Tabs with nice scroll (no scrollbar) and responsive | |||
Segment for Blazor | Forum | This is a Segment component for Blazor Web Assembly and Blazor Server | ||
Tabs for Blazor | Forum | This is a Tabs component for Blazor Web Assembly and Blazor Server | ||
Timeline for Blazor | Forum | This is a new responsive timeline for Blazor Web Assembly and Blazor Server | ||
Toast for Blazor | Forum | Toast notification for Blazor applications | ||
Tours for Blazor | Forum | Guide your users in your Blazor applications | ||
TreeView for Blazor | Forum | This component is a native Blazor TreeView component for Blazor WebAssembly and Blazor Server. The component is built with .NET7. | ||
WorldMap for Blazor | Forum | Demo | Show world maps with your data |
C# libraries for .NET6
Component name | Forum | NuGet | Description |
---|---|---|---|
PSC.Evaluator | Forum | PSC.Evaluator is a mathematical expressions evaluator library written in C#. Allows to evaluate mathematical, boolean, string and datetime expressions. | |
PSC.Extensions | Forum | A lot of functions for .NET5 in a NuGet package that you can download for free. We collected in this package functions for everyday work to help you with claim, strings, enums, date and time, expressions... |
C# libraries for .NET8
Component name | Forum | NuGet | Description |
---|---|---|---|
PSC.CSharp.Library.CountryData | A simple cross platform offline .NET library for getting country data. | ||
PSC.CSharp.Library.LanguageData | This library is a comprehensive language code information, consisting of ISO 639-1, ISO 639-2 and IETF language types for C#. |
More examples and documentation
Blazor
- Write a reusable Blazor component
- Getting Started With C# And Blazor
- Setting Up A Blazor WebAssembly Application
- Working With Blazor Component Model
- Secure Blazor WebAssembly With IdentityServer4
- Blazor Using HttpClient With Authentication
- InputSelect component for enumerations in Blazor
- Use LocalStorage with Blazor WebAssembly
- Modal Dialog component for Blazor
- Create Tooltip component for Blazor
- Consume ASP.NET Core Razor components from Razor class libraries | Microsoft Docs
- ChartJs component for Blazor
- Labels and OnClickChart for ChartJs
Blazor & NET8
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.