Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
.Net Server Supported Cultures
@using System.Collections
<head runat="server">
<title>Supported Cultures</title>
<meta charset="utf-8">
table.minimalistBlack {
border: 2px solid #000000;
width: 100%;
text-align: center;
border-collapse: collapse;
table.minimalistBlack td, table.minimalistBlack th {
border: 1px solid #000000;
padding: 4px 4px;
table.minimalistBlack tbody td {
font-size: 15px;
table.minimalistBlack thead {
background: #CFCFCF;
background: -moz-linear-gradient(top, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
background: -webkit-linear-gradient(top, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
background: linear-gradient(to bottom, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
border-bottom: 2px solid #000000;
table.minimalistBlack thead th {
font-size: 17px;
font-weight: bold;
color: #000000;
text-align: center;
table.minimalistBlack tfoot td {
font-size: 14px;
<body id="body">
<table class="minimalistBlack">
<th>Display Name</th>
<th>Native Name</th>
<th>Language ISO Code</th>
<th>Country/region code</th>
@foreach (var culture in System.Globalization.CultureInfo.GetCultures(System.Globalization.CultureTypes.SpecificCultures))
<td>@culture.TextInfo.CultureName.Replace(culture.Parent.Name, string.Empty).TrimStart('-')</td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.