| 1 |
<!DOCTYPE html> |
| 2 |
|
| 3 |
<html lang="en"> |
| 4 |
<head> |
| 5 |
<meta charset="utf-8"> |
| 6 |
<meta name="viewport" content="width=device-width"> |
| 7 |
<title>weekstart Source: langRegionMap.js</title> |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css"> |
| 13 |
|
| 14 |
<link type="text/css" rel="stylesheet" href="styles/site.spacelab.css"> |
| 15 |
|
| 16 |
</head> |
| 17 |
|
| 18 |
<body> |
| 19 |
|
| 20 |
<div class="navbar navbar-default navbar-fixed-top "> |
| 21 |
<div class="container"> |
| 22 |
<div class="navbar-header"> |
| 23 |
<a class="navbar-brand" href="index.html">weekstart</a> |
| 24 |
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation"> |
| 25 |
<span class="icon-bar"></span> |
| 26 |
<span class="icon-bar"></span> |
| 27 |
<span class="icon-bar"></span> |
| 28 |
</button> |
| 29 |
</div> |
| 30 |
<div class="navbar-collapse collapse" id="topNavigation"> |
| 31 |
<ul class="nav navbar-nav"> |
| 32 |
|
| 33 |
<li class="dropdown"> |
| 34 |
<a href="modules.list.html" class="dropdown-toggle" data-toggle="dropdown">Modules<b class="caret"></b></a> |
| 35 |
<ul class="dropdown-menu "> |
| 36 |
<li><a href="module-api.html">api</a></li><li><a href="module-full.html">full</a></li><li><a href="module-fullLangRegionMap.html">fullLangRegionMap</a></li><li><a href="module-langRegionMap.html">langRegionMap</a></li><li><a href="module-main.html">main</a></li><li><a href="module-regionDayMap.html">regionDayMap</a></li> |
| 37 |
</ul> |
| 38 |
</li> |
| 39 |
|
| 40 |
</ul> |
| 41 |
|
| 42 |
<div class="col-sm-3 col-md-3"> |
| 43 |
<form class="navbar-form" role="search"> |
| 44 |
<div class="input-group"> |
| 45 |
<input type="text" class="form-control" placeholder="Search" name="q" id="search-input"> |
| 46 |
<div class="input-group-btn"> |
| 47 |
<button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button> |
| 48 |
</div> |
| 49 |
</div> |
| 50 |
</form> |
| 51 |
</div> |
| 52 |
|
| 53 |
</div> |
| 54 |
|
| 55 |
</div> |
| 56 |
</div> |
| 57 |
|
| 58 |
|
| 59 |
<div class="container" id="toc-content"> |
| 60 |
<div class="row"> |
| 61 |
|
| 62 |
|
| 63 |
<div class="col-md-12"> |
| 64 |
|
| 65 |
<div id="main"> |
| 66 |
|
| 67 |
|
| 68 |
<h1 class="page-title">Source: langRegionMap.js</h1> |
| 69 |
|
| 70 |
<section> |
| 71 |
<article> |
| 72 |
<pre |
| 73 |
class="sunlight-highlight-javascript linenums">/** |
| 74 |
* Contains base mapping of language code to country code. |
| 75 |
* Contains data only for countries which first day of week is not monday, |
| 76 |
* and mainly for languages approximately having more than 10 mln speakers. |
| 77 |
* |
| 78 |
* Based on data from `fullLangRegionMap.js`. |
| 79 |
* |
| 80 |
* @module langRegionMap |
| 81 |
*/ |
| 82 |
|
| 83 |
|
| 84 |
/* eslint-disable camelcase */ |
| 85 |
/** |
| 86 |
* Base mapping of language code to country code. |
| 87 |
* Contains data only for countries which first day of week is not monday, |
| 88 |
* and mainly for languages approximately having more than 10 mln speakers. |
| 89 |
* |
| 90 |
* Based on data from `fullLangRegionMap.js`. |
| 91 |
*/ |
| 92 |
const langRegionMap = { |
| 93 |
en: 'US', |
| 94 |
|
| 95 |
hi: 'IN', |
| 96 |
deva: 'IN', // script |
| 97 |
te: 'IN', |
| 98 |
mr: 'IN', |
| 99 |
ta: 'IN', |
| 100 |
gu: 'IN', |
| 101 |
kn: 'IN', |
| 102 |
or: 'IN', |
| 103 |
ml: 'IN', |
| 104 |
pa: 'IN', |
| 105 |
bho: 'IN', |
| 106 |
awa: 'IN', |
| 107 |
as: 'IN', |
| 108 |
mwr: 'IN', |
| 109 |
mai: 'IN', |
| 110 |
mag: 'IN', |
| 111 |
bgc: 'IN', |
| 112 |
hne: 'IN', |
| 113 |
dcc: 'IN', |
| 114 |
|
| 115 |
bn: 'BD', |
| 116 |
beng: 'BD', // script |
| 117 |
rkt: 'BD', |
| 118 |
|
| 119 |
dz: 'BT', |
| 120 |
tibt: 'BT', // script |
| 121 |
|
| 122 |
tn: 'BW', |
| 123 |
|
| 124 |
am: 'ET', |
| 125 |
ethi: 'ET', // script |
| 126 |
om: 'ET', |
| 127 |
|
| 128 |
quc: 'GT', |
| 129 |
|
| 130 |
id: 'ID', |
| 131 |
jv: 'ID', |
| 132 |
su: 'ID', |
| 133 |
mad: 'ID', |
| 134 |
ms_arab: 'ID', |
| 135 |
|
| 136 |
he: 'IL', |
| 137 |
hebr: 'IL', // script |
| 138 |
|
| 139 |
jam: 'JM', |
| 140 |
|
| 141 |
ja: 'JP', |
| 142 |
jpan: 'JP', // script |
| 143 |
|
| 144 |
km: 'KH', |
| 145 |
khmr: 'KH', // script |
| 146 |
|
| 147 |
ko: 'KR', |
| 148 |
kore: 'KR', // script |
| 149 |
|
| 150 |
lo: 'LA', |
| 151 |
laoo: 'LA', // script |
| 152 |
|
| 153 |
mh: 'MH', |
| 154 |
|
| 155 |
my: 'MM', |
| 156 |
mymr: 'MM', // script |
| 157 |
|
| 158 |
mt: 'MT', |
| 159 |
|
| 160 |
ne: 'NP', |
| 161 |
|
| 162 |
fil: 'PH', |
| 163 |
ceb: 'PH', |
| 164 |
ilo: 'PH', |
| 165 |
|
| 166 |
ur: 'PK', |
| 167 |
pa_arab: 'PK', |
| 168 |
lah: 'PK', |
| 169 |
ps: 'PK', |
| 170 |
sd: 'PK', |
| 171 |
skr: 'PK', |
| 172 |
|
| 173 |
gn: 'PY', |
| 174 |
|
| 175 |
th: 'TH', |
| 176 |
thai: 'TH', // script |
| 177 |
tts: 'TH', |
| 178 |
|
| 179 |
zh_hant: 'TW', |
| 180 |
hant: 'TW', // script |
| 181 |
|
| 182 |
sm: 'WS', |
| 183 |
|
| 184 |
zu: 'ZA', |
| 185 |
|
| 186 |
sn: 'ZW', |
| 187 |
|
| 188 |
|
| 189 |
arq: 'DZ', |
| 190 |
|
| 191 |
ar: 'EG', |
| 192 |
arab: 'EG', // script |
| 193 |
arz: 'EG', |
| 194 |
|
| 195 |
fa: 'IR', |
| 196 |
az_arab: 'IR', |
| 197 |
|
| 198 |
|
| 199 |
dv: 'MV', |
| 200 |
thaa: 'MV' // script |
| 201 |
}; |
| 202 |
/* eslint-enable camelcase */ |
| 203 |
|
| 204 |
export default langRegionMap; |
| 205 |
</pre> |
| 206 |
</article> |
| 207 |
</section> |
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
</div> |
| 214 |
</div> |
| 215 |
|
| 216 |
<div class="clearfix"></div> |
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
</div> |
| 221 |
</div> |
| 222 |
|
| 223 |
|
| 224 |
<div class="modal fade" id="searchResults"> |
| 225 |
<div class="modal-dialog"> |
| 226 |
<div class="modal-content"> |
| 227 |
<div class="modal-header"> |
| 228 |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
| 229 |
<h4 class="modal-title">Search results</h4> |
| 230 |
</div> |
| 231 |
<div class="modal-body"></div> |
| 232 |
<div class="modal-footer"> |
| 233 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
| 234 |
</div> |
| 235 |
</div> |
| 236 |
</div> |
| 237 |
</div> |
| 238 |
|
| 239 |
|
| 240 |
<footer> |
| 241 |
|
| 242 |
|
| 243 |
<span class="copyright"> |
| 244 |
Copyright (c) 2017-present Denis Sikuler |
| 245 |
</span> |
| 246 |
|
| 247 |
<span class="jsdoc-message"> |
| 248 |
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> |
| 249 |
|
| 250 |
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>. |
| 251 |
</span> |
| 252 |
</footer> |
| 253 |
|
| 254 |
<script src="scripts/docstrap.lib.js"></script> |
| 255 |
<script src="scripts/toc.js"></script> |
| 256 |
|
| 257 |
<script type="text/javascript" src="scripts/fulltext-search-ui.js"></script> |
| 258 |
|
| 259 |
|
| 260 |
<script> |
| 261 |
$( function () { |
| 262 |
$( "[id*='$']" ).each( function () { |
| 263 |
var $this = $( this ); |
| 264 |
|
| 265 |
$this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) ); |
| 266 |
} ); |
| 267 |
|
| 268 |
$( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () { |
| 269 |
var $this = $( this ); |
| 270 |
|
| 271 |
var example = $this.find( "code" ); |
| 272 |
exampleText = example.html(); |
| 273 |
var lang = /{@lang (.*?)}/.exec( exampleText ); |
| 274 |
if ( lang && lang[1] ) { |
| 275 |
exampleText = exampleText.replace( lang[0], "" ); |
| 276 |
example.html( exampleText ); |
| 277 |
lang = lang[1]; |
| 278 |
} else { |
| 279 |
var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/); |
| 280 |
lang = langClassMatch ? langClassMatch[1] : "javascript"; |
| 281 |
} |
| 282 |
|
| 283 |
if ( lang ) { |
| 284 |
|
| 285 |
$this |
| 286 |
.addClass( "sunlight-highlight-" + lang ) |
| 287 |
.addClass( "linenums" ) |
| 288 |
.html( example.html() ); |
| 289 |
|
| 290 |
} |
| 291 |
} ); |
| 292 |
|
| 293 |
Sunlight.highlightAll( { |
| 294 |
lineNumbers : true, |
| 295 |
showMenu : true, |
| 296 |
enableDoclinks : true |
| 297 |
} ); |
| 298 |
|
| 299 |
$.catchAnchorLinks( { |
| 300 |
navbarOffset: 10 |
| 301 |
} ); |
| 302 |
$( "#toc" ).toc( { |
| 303 |
anchorName : function ( i, heading, prefix ) { |
| 304 |
return $( heading ).attr( "id" ) || ( prefix + i ); |
| 305 |
}, |
| 306 |
selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4", |
| 307 |
showAndHide : false, |
| 308 |
smoothScrolling: true |
| 309 |
} ); |
| 310 |
|
| 311 |
$( "#main span[id^='toc']" ).addClass( "toc-shim" ); |
| 312 |
$( '.dropdown-toggle' ).dropdown(); |
| 313 |
|
| 314 |
$( "table" ).each( function () { |
| 315 |
var $this = $( this ); |
| 316 |
$this.addClass('table'); |
| 317 |
} ); |
| 318 |
|
| 319 |
} ); |
| 320 |
</script> |
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
<script type="text/javascript"> |
| 332 |
$(document).ready(function() { |
| 333 |
SearcherDisplay.init(); |
| 334 |
}); |
| 335 |
</script> |
| 336 |
|
| 337 |
|
| 338 |
</body> |
| 339 |
</html> |