langs.js 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.langIdToName = exports.lcid = exports.toLangWithRegion = exports.bundledLanguages = void 0;
  4. exports.bundledLanguages = [
  5. "en_US",
  6. "de_DE",
  7. "fr_FR",
  8. "es_ES",
  9. "zh_CN",
  10. "zh_TW",
  11. "ja_JP",
  12. "ko_KR",
  13. "it_IT",
  14. "nl_NL",
  15. "da_DK",
  16. "sv_SE",
  17. "nb_NO",
  18. "fi_FI",
  19. "ru_RU",
  20. "pt_PT",
  21. "pt_BR",
  22. "pl_PL",
  23. "uk_UA",
  24. "cs_CZ",
  25. "sk_SK",
  26. "hu_HU",
  27. "ar_SA",
  28. "tr_TR",
  29. "th_TH",
  30. "vi_VN",
  31. ];
  32. // todo "ro_RO" "el_GR" "et_EE" "ka_GE"
  33. const langToLangWithRegion = new Map();
  34. for (const id of exports.bundledLanguages) {
  35. langToLangWithRegion.set(id.substring(0, id.indexOf("_")), id);
  36. }
  37. function toLangWithRegion(lang) {
  38. if (lang.includes("_")) {
  39. return lang;
  40. }
  41. lang = lang.toLowerCase();
  42. const result = langToLangWithRegion.get(lang);
  43. return result == null ? `${lang}_${lang.toUpperCase()}` : result;
  44. }
  45. exports.toLangWithRegion = toLangWithRegion;
  46. exports.lcid = {
  47. af_ZA: 1078,
  48. am_ET: 1118,
  49. ar_AE: 14337,
  50. ar_BH: 15361,
  51. ar_DZ: 5121,
  52. ar_EG: 3073,
  53. ar_IQ: 2049,
  54. ar_JO: 11265,
  55. ar_KW: 13313,
  56. ar_LB: 12289,
  57. ar_LY: 4097,
  58. ar_MA: 6145,
  59. ar_OM: 8193,
  60. ar_QA: 16385,
  61. ar_SA: 1025,
  62. ar_SY: 10241,
  63. ar_TN: 7169,
  64. ar_YE: 9217,
  65. arn_CL: 1146,
  66. as_IN: 1101,
  67. az_AZ: 2092,
  68. ba_RU: 1133,
  69. be_BY: 1059,
  70. bg_BG: 1026,
  71. bn_IN: 1093,
  72. bo_BT: 2129,
  73. bo_CN: 1105,
  74. br_FR: 1150,
  75. bs_BA: 8218,
  76. ca_ES: 1027,
  77. co_FR: 1155,
  78. cs_CZ: 1029,
  79. cy_GB: 1106,
  80. da_DK: 1030,
  81. de_AT: 3079,
  82. de_CH: 2055,
  83. de_DE: 1031,
  84. de_LI: 5127,
  85. de_LU: 4103,
  86. div_MV: 1125,
  87. dsb_DE: 2094,
  88. el_GR: 1032,
  89. en_AU: 3081,
  90. en_BZ: 10249,
  91. en_CA: 4105,
  92. en_CB: 9225,
  93. en_GB: 2057,
  94. en_IE: 6153,
  95. en_IN: 18441,
  96. en_JA: 8201,
  97. en_MY: 17417,
  98. en_NZ: 5129,
  99. en_PH: 13321,
  100. en_TT: 11273,
  101. en_US: 1033,
  102. en_ZA: 7177,
  103. en_ZW: 12297,
  104. es_AR: 11274,
  105. es_BO: 16394,
  106. es_CL: 13322,
  107. es_CO: 9226,
  108. es_CR: 5130,
  109. es_DO: 7178,
  110. es_EC: 12298,
  111. es_ES: 3082,
  112. es_GT: 4106,
  113. es_HN: 18442,
  114. es_MX: 2058,
  115. es_NI: 19466,
  116. es_PA: 6154,
  117. es_PE: 10250,
  118. es_PR: 20490,
  119. es_PY: 15370,
  120. es_SV: 17418,
  121. es_UR: 14346,
  122. es_US: 21514,
  123. es_VE: 8202,
  124. et_EE: 1061,
  125. eu_ES: 1069,
  126. fa_IR: 1065,
  127. fi_FI: 1035,
  128. fil_PH: 1124,
  129. fo_FO: 1080,
  130. fr_BE: 2060,
  131. fr_CA: 3084,
  132. fr_CH: 4108,
  133. fr_FR: 1036,
  134. fr_LU: 5132,
  135. fr_MC: 6156,
  136. fy_NL: 1122,
  137. ga_IE: 2108,
  138. gbz_AF: 1164,
  139. gl_ES: 1110,
  140. gsw_FR: 1156,
  141. gu_IN: 1095,
  142. ha_NG: 1128,
  143. he_IL: 1037,
  144. hi_IN: 1081,
  145. hr_BA: 4122,
  146. hr_HR: 1050,
  147. hu_HU: 1038,
  148. hy_AM: 1067,
  149. id_ID: 1057,
  150. ii_CN: 1144,
  151. is_IS: 1039,
  152. it_CH: 2064,
  153. it_IT: 1040,
  154. iu_CA: 2141,
  155. ja_JP: 1041,
  156. ka_GE: 1079,
  157. kh_KH: 1107,
  158. kk_KZ: 1087,
  159. kl_GL: 1135,
  160. kn_IN: 1099,
  161. ko_KR: 1042,
  162. kok_IN: 1111,
  163. ky_KG: 1088,
  164. lb_LU: 1134,
  165. lo_LA: 1108,
  166. lt_LT: 1063,
  167. lv_LV: 1062,
  168. mi_NZ: 1153,
  169. mk_MK: 1071,
  170. ml_IN: 1100,
  171. mn_CN: 2128,
  172. mn_MN: 1104,
  173. moh_CA: 1148,
  174. mr_IN: 1102,
  175. ms_BN: 2110,
  176. ms_MY: 1086,
  177. mt_MT: 1082,
  178. my_MM: 1109,
  179. nb_NO: 1044,
  180. ne_NP: 1121,
  181. nl_BE: 2067,
  182. nl_NL: 1043,
  183. nn_NO: 2068,
  184. ns_ZA: 1132,
  185. oc_FR: 1154,
  186. or_IN: 1096,
  187. pa_IN: 1094,
  188. pl_PL: 1045,
  189. ps_AF: 1123,
  190. pt_BR: 1046,
  191. pt_PT: 2070,
  192. qut_GT: 1158,
  193. quz_BO: 1131,
  194. quz_EC: 2155,
  195. quz_PE: 3179,
  196. rm_CH: 1047,
  197. ro_RO: 1048,
  198. ru_RU: 1049,
  199. rw_RW: 1159,
  200. sa_IN: 1103,
  201. sah_RU: 1157,
  202. se_FI: 3131,
  203. se_NO: 1083,
  204. se_SE: 2107,
  205. si_LK: 1115,
  206. sk_SK: 1051,
  207. sl_SI: 1060,
  208. sma_NO: 6203,
  209. sma_SE: 7227,
  210. smj_NO: 4155,
  211. smj_SE: 5179,
  212. smn_FI: 9275,
  213. sms_FI: 8251,
  214. sq_AL: 1052,
  215. sr_BA: 7194,
  216. sr_SP: 3098,
  217. sv_FI: 2077,
  218. sv_SE: 1053,
  219. sw_KE: 1089,
  220. syr_SY: 1114,
  221. ta_IN: 1097,
  222. te_IN: 1098,
  223. tg_TJ: 1064,
  224. th_TH: 1054,
  225. tk_TM: 1090,
  226. tmz_DZ: 2143,
  227. tn_ZA: 1074,
  228. tr_TR: 1055,
  229. tt_RU: 1092,
  230. ug_CN: 1152,
  231. uk_UA: 1058,
  232. ur_IN: 2080,
  233. ur_PK: 1056,
  234. uz_UZ: 2115,
  235. vi_VN: 1066,
  236. wen_DE: 1070,
  237. wo_SN: 1160,
  238. xh_ZA: 1076,
  239. yo_NG: 1130,
  240. zh_CHS: 4,
  241. zh_CHT: 31748,
  242. zh_CN: 2052,
  243. zh_HK: 3076,
  244. zh_MO: 5124,
  245. zh_SG: 4100,
  246. zh_TW: 1028,
  247. zu_ZA: 1077,
  248. };
  249. // noinspection SpellCheckingInspection
  250. exports.langIdToName = {
  251. ab: "Abkhaz",
  252. aa: "Afar",
  253. af: "Afrikaans",
  254. ak: "Akan",
  255. sq: "Albanian",
  256. am: "Amharic",
  257. ar: "Arabic",
  258. an: "Aragonese",
  259. hy: "Armenian",
  260. as: "Assamese",
  261. av: "Avaric",
  262. ae: "Avestan",
  263. ay: "Aymara",
  264. az: "Azerbaijani",
  265. bm: "Bambara",
  266. ba: "Bashkir",
  267. eu: "Basque",
  268. be: "Belarusian",
  269. bn: "Bengali",
  270. bh: "Bihari",
  271. bi: "Bislama",
  272. bs: "Bosnian",
  273. br: "Breton",
  274. bg: "Bulgarian",
  275. my: "Burmese",
  276. ca: "Catalan",
  277. ch: "Chamorro",
  278. ce: "Chechen",
  279. ny: "Chichewa",
  280. zh: "Chinese",
  281. cv: "Chuvash",
  282. kw: "Cornish",
  283. co: "Corsican",
  284. cr: "Cree",
  285. hr: "Croatian",
  286. cs: "Czech",
  287. da: "Danish",
  288. dv: "Divehi",
  289. nl: "Dutch",
  290. dz: "Dzongkha",
  291. en: "English",
  292. eo: "Esperanto",
  293. et: "Estonian",
  294. ee: "Ewe",
  295. fo: "Faroese",
  296. fj: "Fijian",
  297. fi: "Finnish",
  298. fr: "French",
  299. ff: "Fula",
  300. gl: "Galician",
  301. ka: "Georgian",
  302. de: "German",
  303. el: "Greek",
  304. gn: "Guaraní",
  305. gu: "Gujarati",
  306. ht: "Haitian",
  307. ha: "Hausa",
  308. he: "Hebrew",
  309. hz: "Herero",
  310. hi: "Hindi",
  311. ho: "Hiri Motu",
  312. hu: "Hungarian",
  313. ia: "Interlingua",
  314. id: "Indonesian",
  315. ie: "Interlingue",
  316. ga: "Irish",
  317. ig: "Igbo",
  318. ik: "Inupiaq",
  319. io: "Ido",
  320. is: "Icelandic",
  321. it: "Italian",
  322. iu: "Inuktitut",
  323. ja: "Japanese",
  324. jv: "Javanese",
  325. kl: "Kalaallisut",
  326. kn: "Kannada",
  327. kr: "Kanuri",
  328. ks: "Kashmiri",
  329. kk: "Kazakh",
  330. km: "Khmer",
  331. ki: "Kikuyu",
  332. rw: "Kinyarwanda",
  333. ky: "Kyrgyz",
  334. kv: "Komi",
  335. kg: "Kongo",
  336. ko: "Korean",
  337. ku: "Kurdish",
  338. kj: "Kwanyama",
  339. la: "Latin",
  340. lb: "Luxembourgish",
  341. lg: "Ganda",
  342. li: "Limburgish",
  343. ln: "Lingala",
  344. lo: "Lao",
  345. lt: "Lithuanian",
  346. lu: "Luba-Katanga",
  347. lv: "Latvian",
  348. gv: "Manx",
  349. mk: "Macedonian",
  350. mg: "Malagasy",
  351. ms: "Malay",
  352. ml: "Malayalam",
  353. mt: "Maltese",
  354. mi: "Māori",
  355. mr: "Marathi",
  356. mh: "Marshallese",
  357. mn: "Mongolian",
  358. na: "Nauru",
  359. nv: "Navajo",
  360. nd: "Northern Ndebele",
  361. ne: "Nepali",
  362. ng: "Ndonga",
  363. nb: "Norwegian Bokmål",
  364. nn: "Norwegian Nynorsk",
  365. no: "Norwegian",
  366. ii: "Nuosu",
  367. nr: "Southern Ndebele",
  368. oc: "Occitan",
  369. oj: "Ojibwe",
  370. cu: "Old Church Slavonic",
  371. om: "Oromo",
  372. or: "Oriya",
  373. os: "Ossetian",
  374. pa: "Panjabi",
  375. pi: "Pāli",
  376. fa: "Persian",
  377. pl: "Polish",
  378. ps: "Pashto",
  379. pt: "Portuguese",
  380. qu: "Quechua",
  381. rm: "Romansh",
  382. rn: "Kirundi",
  383. ro: "Romanian",
  384. ru: "Russian",
  385. sa: "Sanskrit",
  386. sc: "Sardinian",
  387. sd: "Sindhi",
  388. se: "Northern Sami",
  389. sm: "Samoan",
  390. sg: "Sango",
  391. sr: "Serbian",
  392. gd: "Gaelic",
  393. sn: "Shona",
  394. si: "Sinhala",
  395. sk: "Slovak",
  396. sl: "Slovene",
  397. so: "Somali",
  398. st: "Southern Sotho",
  399. es: "Spanish",
  400. su: "Sundanese",
  401. sw: "Swahili",
  402. ss: "Swati",
  403. sv: "Swedish",
  404. ta: "Tamil",
  405. te: "Telugu",
  406. tg: "Tajik",
  407. th: "Thai",
  408. ti: "Tigrinya",
  409. bo: "Tibetan Standard",
  410. tk: "Turkmen",
  411. tl: "Tagalog",
  412. tn: "Tswana",
  413. to: "Tonga",
  414. tr: "Turkish",
  415. ts: "Tsonga",
  416. tt: "Tatar",
  417. tw: "Twi",
  418. ty: "Tahitian",
  419. ug: "Uyghur",
  420. uk: "Ukrainian",
  421. ur: "Urdu",
  422. uz: "Uzbek",
  423. ve: "Venda",
  424. vi: "Vietnamese",
  425. vo: "Volapük",
  426. wa: "Walloon",
  427. cy: "Welsh",
  428. wo: "Wolof",
  429. fy: "Western Frisian",
  430. xh: "Xhosa",
  431. yi: "Yiddish",
  432. yo: "Yoruba",
  433. za: "Zhuang",
  434. zu: "Zulu",
  435. };
  436. //# sourceMappingURL=langs.js.map