-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlangRegionMap.js
132 lines (98 loc) · 1.98 KB
/
langRegionMap.js
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/**
* Contains base mapping of language code to country code.
* Contains data only for countries which first day of week is not monday,
* and mainly for languages approximately having more than 10 mln speakers.
*
* Based on data from `fullLangRegionMap.js`.
*
* @module langRegionMap
*/
/* eslint-disable camelcase */
/**
* Base mapping of language code to country code.
* Contains data only for countries which first day of week is not monday,
* and mainly for languages approximately having more than 10 mln speakers.
*
* Based on data from `fullLangRegionMap.js`.
*/
const langRegionMap = {
en: 'US',
hi: 'IN',
deva: 'IN', // script
te: 'IN',
mr: 'IN',
ta: 'IN',
gu: 'IN',
kn: 'IN',
or: 'IN',
ml: 'IN',
pa: 'IN',
bho: 'IN',
awa: 'IN',
as: 'IN',
mwr: 'IN',
mai: 'IN',
mag: 'IN',
bgc: 'IN',
hne: 'IN',
dcc: 'IN',
bn: 'BD',
beng: 'BD', // script
rkt: 'BD',
dz: 'BT',
tibt: 'BT', // script
tn: 'BW',
am: 'ET',
ethi: 'ET', // script
om: 'ET',
quc: 'GT',
id: 'ID',
jv: 'ID',
su: 'ID',
mad: 'ID',
ms_arab: 'ID',
he: 'IL',
hebr: 'IL', // script
jam: 'JM',
ja: 'JP',
jpan: 'JP', // script
km: 'KH',
khmr: 'KH', // script
ko: 'KR',
kore: 'KR', // script
lo: 'LA',
laoo: 'LA', // script
mh: 'MH',
my: 'MM',
mymr: 'MM', // script
mt: 'MT',
ne: 'NP',
fil: 'PH',
ceb: 'PH',
ilo: 'PH',
ur: 'PK',
pa_arab: 'PK',
lah: 'PK',
ps: 'PK',
sd: 'PK',
skr: 'PK',
gn: 'PY',
th: 'TH',
thai: 'TH', // script
tts: 'TH',
zh_hant: 'TW',
hant: 'TW', // script
sm: 'WS',
zu: 'ZA',
sn: 'ZW',
arq: 'DZ',
ar: 'EG',
arab: 'EG', // script
arz: 'EG',
fa: 'IR',
az_arab: 'IR',
dv: 'MV',
thaa: 'MV' // script
};
/* eslint-enable camelcase */
export default langRegionMap;