forked from goodsign/monday
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocale.go
67 lines (63 loc) · 1.77 KB
/
locale.go
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
57
58
59
60
61
62
63
64
65
66
67
package monday
// Locale identifies locales supported by 'monday' package.
// Monday uses ICU locale identifiers. See http://userguide.icu-project.org/locale
type Locale string
const (
LocaleEnUS = "en_US" // English (United States)
LocaleEnGB = "en_GB" // English (United Kingdom)
LocaleDaDK = "da_DK" // Danish (Denmark)
LocaleNlBE = "nl_BE" // Dutch (Belgium)
LocaleNlNL = "nl_NL" // Dutch (Netherlands)
LocaleFiFI = "fi_FI" // Finnish (Finland)
LocaleFrFR = "fr_FR" // French (France)
LocaleFrCA = "fr_CA" // French (Canada)
LocaleDeDE = "de_DE" // German (Germany)
LocaleHuHU = "hu_HU" // Hungarian (Hungary)
LocaleItIT = "it_IT" // Italian (Italy)
LocaleNnNO = "nn_NO" // Norwegian Nynorsk (Norway)
LocaleNbNO = "nb_NO" // Norwegian Bokmål (Norway)
LocalePtPT = "pt_PT" // Portuguese (Portugal)
LocalePtBR = "pt_BR" // Portuguese (Brazil)
LocaleRoRO = "ro_RO" // Romanian (Romania)
LocaleRuRU = "ru_RU" // Russian (Russia)
LocaleEsES = "es_ES" // Spanish (Spain)
LocaleCaES = "ca_ES" // Catalan (Spain)
LocaleSvSE = "sv_SE" // Swedish (Sweden)
LocaleTrTR = "tr_TR" // Turkish (Turkey)
LocaleBgBG = "bt_BG" // Bulgarian (Bulgaria)
LocaleZhCN = "zh_CN" // Chinese (Mainland)
LocaleZhTW = "zh_TW" // Chinese (Taiwan)
LocaleZhHK = "zh_HK" // Chinese (Hong Kong)
LocaleJaJP = "ja_JP" // Japanese (Japan)
)
// ListLocales returns all locales supported by the package.
func ListLocales() []Locale {
return []Locale{
LocaleEnUS,
LocaleEnGB,
LocaleDaDK,
LocaleNlBE,
LocaleNlNL,
LocaleFiFI,
LocaleFrFR,
LocaleFrCA,
LocaleDeDE,
LocaleHuHU,
LocaleItIT,
LocaleNnNO,
LocaleNbNO,
LocalePtPT,
LocalePtBR,
LocaleRoRO,
LocaleRuRU,
LocaleEsES,
LocaleCaES,
LocaleSvSE,
LocaleTrTR,
LocaleBgBG,
LocaleZhCN,
LocaleZhTW,
LocaleZhHK,
LocaleJaJP,
}
}