Last active
April 14, 2019 04:10
-
-
Save josedbaez/2065bf10c9fbc2ba279ed69c80a3bf7b to your computer and use it in GitHub Desktop.
.Net Server Supported Cultures
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @using System.Collections | |
| <!DOCTYPE HTML> | |
| <html> | |
| <head runat="server"> | |
| <title>Supported Cultures</title> | |
| <meta charset="utf-8"> | |
| <style> | |
| 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; | |
| } | |
| </style> | |
| </head> | |
| <body id="body"> | |
| <table class="minimalistBlack"> | |
| <thead> | |
| <tr> | |
| <th>Display Name</th> | |
| <th>Native Name</th> | |
| <th>Language ISO Code</th> | |
| <th>Language</th> | |
| <th>Country/region code</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| @foreach (var culture in System.Globalization.CultureInfo.GetCultures(System.Globalization.CultureTypes.SpecificCultures)) | |
| { | |
| <tr> | |
| <td>@culture.DisplayName</td> | |
| <td>@culture.NativeName</td> | |
| <td>@culture.TextInfo.CultureName</td> | |
| <td>@culture.Parent.Name</td> | |
| <td>@culture.TextInfo.CultureName.Replace(culture.Parent.Name, string.Empty).TrimStart('-')</td> | |
| </tr> | |
| } | |
| </tbody> | |
| </table> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment