-
Notifications
You must be signed in to change notification settings - Fork 262
/
AvailableCultures.cs
56 lines (52 loc) · 2.86 KB
/
AvailableCultures.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
namespace TwitchDownloaderWPF.Services
{
public record struct Culture(string Code, string NativeName);
public static class AvailableCultures
{
// Notes for translators:
//
// Please create a new record for your culture and place it in the 'All' array in alphabetical order according to the culture code.
// The order of the 'All' array is the order that cultures will appear in the language dropdown menu.
//
// If you do not know the code for your culture, you can find it using the Visual Studio ResX Resource Manager extension
// https://marketplace.visualstudio.com/items?itemName=TomEnglert.ResXManager
// For JetBrains Rider users, the localization manager's "Add Culture" dialogue contains culture codes
// Or alternatively it can probably be found it here:
// http://www.codedigest.com/CodeDigest/207-Get-All-Language-Country-Code-List-for-all-Culture-in-C---ASP-Net.aspx
// Or it can be found by combining the ISO 639-3 language name with the ISO 3166-1 alpha-2 country name.
// ISO 639-3: https://en.wikipedia.org/wiki/IETF_language_tag#List_of_common_primary_language_subtags
// ISO 3166-1 alpha-2: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
public static readonly Culture English;
public static readonly Culture Spanish;
public static readonly Culture French;
public static readonly Culture Italian;
public static readonly Culture Japanese;
public static readonly Culture Polish;
public static readonly Culture Russian;
public static readonly Culture Turkish;
public static readonly Culture Ukrainian;
public static readonly Culture SimplifiedChinese;
public static readonly Culture TraditionalChinese;
public static readonly Culture[] All;
// ReSharper disable StringLiteralTypo
static AvailableCultures()
{
All = new[]
{
English = new Culture("en-US", "English"),
Spanish = new Culture("es-ES", "Español"),
French = new Culture("fr-FR", "Français"),
Italian = new Culture("it-it", "Italiano"),
Japanese = new Culture("ja-JP", "日本語"),
Polish = new Culture("pl-PL", "Polski"),
Polish = new Culture("pt-BR", "Português (Brasil)"),
Russian = new Culture("ru-RU", "Русский"),
Turkish = new Culture("tr-TR", "Türkçe"),
Ukrainian = new Culture("uk-ua", "Українська"),
SimplifiedChinese = new Culture("zh-CN", "简体中文(中国大陆)"),
TraditionalChinese = new Culture("zh-TW", "繁體中文(台灣)"),
};
}
// ReSharper restore StringLiteralTypo
}
}