generaltranslation 2.0.53 → 2.0.55

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. package/dist/{codes → cjs/codes}/codes.js +11 -12
  2. package/dist/{codes → cjs/codes}/getLanguageDirection.js +4 -4
  3. package/dist/{index.js → cjs/index.js} +10 -29
  4. package/dist/cjs/translation/_bundleTranslation.js +42 -0
  5. package/dist/cjs/translation/_intl.js +52 -0
  6. package/dist/cjs/translation/_translate.js +51 -0
  7. package/dist/cjs/translation/_translateReactChildren.js +56 -0
  8. package/dist/cjs/translation/_updateRemoteDictionary.js +30 -0
  9. package/dist/mjs/codes/15924/CodeToScript.json +215 -0
  10. package/dist/mjs/codes/15924/ScriptToCode.json +215 -0
  11. package/dist/mjs/codes/3166/CodeToRegion.json +296 -0
  12. package/dist/mjs/codes/3166/RegionToCode.json +296 -0
  13. package/dist/mjs/codes/639-1/CodeToLanguage.json +185 -0
  14. package/dist/mjs/codes/639-1/LanguageToCode.json +227 -0
  15. package/dist/mjs/codes/639-3/CodeToLanguageTriletter.json +186 -0
  16. package/dist/mjs/codes/639-3/LanguageToCodeTriletter.json +228 -0
  17. package/dist/mjs/codes/codes.d.ts +8 -0
  18. package/dist/mjs/codes/codes.js +305 -0
  19. package/dist/mjs/codes/getLanguageDirection.d.ts +1 -0
  20. package/dist/mjs/codes/getLanguageDirection.js +68 -0
  21. package/dist/mjs/codes/predefined/Predefined.json +28 -0
  22. package/dist/mjs/index.d.ts +153 -0
  23. package/dist/mjs/index.js +130 -0
  24. package/dist/mjs/translation/_bundleTranslation.d.ts +22 -0
  25. package/dist/mjs/translation/_bundleTranslation.js +39 -0
  26. package/dist/mjs/translation/_intl.d.ts +1 -0
  27. package/dist/mjs/translation/_intl.js +49 -0
  28. package/dist/mjs/translation/_translate.d.ts +1 -0
  29. package/dist/mjs/translation/_translate.js +48 -0
  30. package/dist/mjs/translation/_translateReactChildren.d.ts +1 -0
  31. package/dist/mjs/translation/_translateReactChildren.js +53 -0
  32. package/dist/mjs/translation/_updateRemoteDictionary.d.ts +17 -0
  33. package/dist/mjs/translation/_updateRemoteDictionary.js +27 -0
  34. package/package.json +12 -5
  35. package/dist/translation/_bundleTranslation.js +0 -54
  36. package/dist/translation/_intl.js +0 -63
  37. package/dist/translation/_translate.js +0 -62
  38. package/dist/translation/_translateReactChildren.js +0 -67
  39. package/dist/translation/_updateRemoteDictionary.js +0 -41
  40. /package/dist/{codes → cjs/codes}/15924/CodeToScript.json +0 -0
  41. /package/dist/{codes → cjs/codes}/15924/ScriptToCode.json +0 -0
  42. /package/dist/{codes → cjs/codes}/3166/CodeToRegion.json +0 -0
  43. /package/dist/{codes → cjs/codes}/3166/RegionToCode.json +0 -0
  44. /package/dist/{codes → cjs/codes}/639-1/CodeToLanguage.json +0 -0
  45. /package/dist/{codes → cjs/codes}/639-1/LanguageToCode.json +0 -0
  46. /package/dist/{codes → cjs/codes}/639-3/CodeToLanguageTriletter.json +0 -0
  47. /package/dist/{codes → cjs/codes}/639-3/LanguageToCodeTriletter.json +0 -0
  48. /package/dist/{codes → cjs/codes}/codes.d.ts +0 -0
  49. /package/dist/{codes → cjs/codes}/getLanguageDirection.d.ts +0 -0
  50. /package/dist/{codes → cjs/codes}/predefined/Predefined.json +0 -0
  51. /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
  52. /package/dist/{translation → cjs/translation}/_bundleTranslation.d.ts +0 -0
  53. /package/dist/{translation → cjs/translation}/_intl.d.ts +0 -0
  54. /package/dist/{translation → cjs/translation}/_translate.d.ts +0 -0
  55. /package/dist/{translation → cjs/translation}/_translateReactChildren.d.ts +0 -0
  56. /package/dist/{translation → cjs/translation}/_updateRemoteDictionary.d.ts +0 -0
@@ -0,0 +1,296 @@
1
+ {
2
+ "ascension island": "AC",
3
+ "andorra": "AD",
4
+ "united arab emirates": "AE",
5
+ "afghanistan": "AF",
6
+ "antigua and barbuda": "AG",
7
+ "anguilla": "AI",
8
+ "albania": "AL",
9
+ "armenia": "AM",
10
+ "netherlands antilles": "AN",
11
+ "angola": "AO",
12
+ "antarctica": "AQ",
13
+ "argentina": "AR",
14
+ "american samoa": "AS",
15
+ "austria": "AT",
16
+ "australia": "AU",
17
+ "aruba": "AW",
18
+ "åland islands": "AX",
19
+ "azerbaijan": "AZ",
20
+ "bosnia and herzegovina": "BA",
21
+ "barbados": "BB",
22
+ "bangladesh": "BD",
23
+ "belgium": "BE",
24
+ "burkina faso": "BF",
25
+ "bulgaria": "BG",
26
+ "bahrain": "BH",
27
+ "burundi": "BI",
28
+ "benin": "BJ",
29
+ "saint barthélemy": "BL",
30
+ "bermuda": "BM",
31
+ "brunei darussalam": "BN",
32
+ "bolivia": "BO",
33
+ "bonaire, sint eustatius and saba": "BQ",
34
+ "brazil": "BR",
35
+ "bahamas": "BS",
36
+ "bhutan": "BT",
37
+ "bouvet island": "BV",
38
+ "botswana": "BW",
39
+ "belarus": "BY",
40
+ "belize": "BZ",
41
+ "canada": "CA",
42
+ "cocos (keeling) islands": "CC",
43
+ "the democratic republic of the congo": "CD",
44
+ "central african republic": "CF",
45
+ "congo": "CG",
46
+ "switzerland": "CH",
47
+ "côte d'ivoire": "CI",
48
+ "cook islands": "CK",
49
+ "chile": "CL",
50
+ "cameroon": "CM",
51
+ "china": "CN",
52
+ "colombia": "CO",
53
+ "clipperton island": "CP",
54
+ "sark": "CQ",
55
+ "costa rica": "CR",
56
+ "serbia and montenegro": "CS",
57
+ "cuba": "CU",
58
+ "cabo verde": "CV",
59
+ "curaçao": "CW",
60
+ "christmas island": "CX",
61
+ "cyprus": "CY",
62
+ "czechia": "CZ",
63
+ "germany": "DE",
64
+ "diego garcia": "DG",
65
+ "djibouti": "DJ",
66
+ "denmark": "DK",
67
+ "dominica": "DM",
68
+ "dominican republic": "DO",
69
+ "algeria": "DZ",
70
+ "ceuta, melilla": "EA",
71
+ "ecuador": "EC",
72
+ "estonia": "EE",
73
+ "egypt": "EG",
74
+ "western sahara": "EH",
75
+ "eritrea": "ER",
76
+ "spain": "ES",
77
+ "ethiopia": "ET",
78
+ "european union": "EU",
79
+ "eurozone": "EZ",
80
+ "finland": "FI",
81
+ "fiji": "FJ",
82
+ "falkland islands (malvinas)": "FK",
83
+ "federated states of micronesia": "FM",
84
+ "faroe islands": "FO",
85
+ "france": "FR",
86
+ "gabon": "GA",
87
+ "united kingdom": "GB",
88
+ "grenada": "GD",
89
+ "georgia": "GE",
90
+ "french guiana": "GF",
91
+ "guernsey": "GG",
92
+ "ghana": "GH",
93
+ "gibraltar": "GI",
94
+ "greenland": "GL",
95
+ "gambia": "GM",
96
+ "guinea": "GN",
97
+ "guadeloupe": "GP",
98
+ "equatorial guinea": "GQ",
99
+ "greece": "GR",
100
+ "south georgia and the south sandwich islands": "GS",
101
+ "guatemala": "GT",
102
+ "guam": "GU",
103
+ "guinea-bissau": "GW",
104
+ "guyana": "GY",
105
+ "hong kong": "HK",
106
+ "heard island and mcdonald islands": "HM",
107
+ "honduras": "HN",
108
+ "croatia": "HR",
109
+ "haiti": "HT",
110
+ "hungary": "HU",
111
+ "canary islands": "IC",
112
+ "indonesia": "ID",
113
+ "ireland": "IE",
114
+ "israel": "IL",
115
+ "isle of man": "IM",
116
+ "india": "IN",
117
+ "british indian ocean territory": "IO",
118
+ "iraq": "IQ",
119
+ "islamic republic of iran": "IR",
120
+ "iceland": "IS",
121
+ "italy": "IT",
122
+ "jersey": "JE",
123
+ "jamaica": "JM",
124
+ "jordan": "JO",
125
+ "japan": "JP",
126
+ "kenya": "KE",
127
+ "kyrgyzstan": "KG",
128
+ "cambodia": "KH",
129
+ "kiribati": "KI",
130
+ "comoros": "KM",
131
+ "saint kitts and nevis": "KN",
132
+ "democratic people's republic of korea": "KP",
133
+ "republic of korea": "KR",
134
+ "kuwait": "KW",
135
+ "cayman islands": "KY",
136
+ "kazakhstan": "KZ",
137
+ "lao people's democratic republic": "LA",
138
+ "lebanon": "LB",
139
+ "saint lucia": "LC",
140
+ "liechtenstein": "LI",
141
+ "sri lanka": "LK",
142
+ "liberia": "LR",
143
+ "lesotho": "LS",
144
+ "lithuania": "LT",
145
+ "luxembourg": "LU",
146
+ "latvia": "LV",
147
+ "libya": "LY",
148
+ "morocco": "MA",
149
+ "monaco": "MC",
150
+ "moldova": "MD",
151
+ "montenegro": "ME",
152
+ "saint martin (french part)": "MF",
153
+ "madagascar": "MG",
154
+ "marshall islands": "MH",
155
+ "north macedonia": "MK",
156
+ "mali": "ML",
157
+ "myanmar": "MM",
158
+ "mongolia": "MN",
159
+ "macao": "MO",
160
+ "northern mariana islands": "MP",
161
+ "martinique": "MQ",
162
+ "mauritania": "MR",
163
+ "montserrat": "MS",
164
+ "malta": "MT",
165
+ "mauritius": "MU",
166
+ "maldives": "MV",
167
+ "malawi": "MW",
168
+ "mexico": "MX",
169
+ "malaysia": "MY",
170
+ "mozambique": "MZ",
171
+ "namibia": "NA",
172
+ "new caledonia": "NC",
173
+ "niger": "NE",
174
+ "norfolk island": "NF",
175
+ "nigeria": "NG",
176
+ "nicaragua": "NI",
177
+ "netherlands": "NL",
178
+ "norway": "NO",
179
+ "nepal": "NP",
180
+ "nauru": "NR",
181
+ "niue": "NU",
182
+ "new zealand": "NZ",
183
+ "oman": "OM",
184
+ "panama": "PA",
185
+ "peru": "PE",
186
+ "french polynesia": "PF",
187
+ "papua new guinea": "PG",
188
+ "philippines": "PH",
189
+ "pakistan": "PK",
190
+ "poland": "PL",
191
+ "saint pierre and miquelon": "PM",
192
+ "pitcairn": "PN",
193
+ "puerto rico": "PR",
194
+ "state of palestine": "PS",
195
+ "portugal": "PT",
196
+ "palau": "PW",
197
+ "paraguay": "PY",
198
+ "qatar": "QA",
199
+ "réunion": "RE",
200
+ "romania": "RO",
201
+ "serbia": "RS",
202
+ "russian federation": "RU",
203
+ "rwanda": "RW",
204
+ "saudi arabia": "SA",
205
+ "solomon islands": "SB",
206
+ "seychelles": "SC",
207
+ "sudan": "SD",
208
+ "sweden": "SE",
209
+ "singapore": "SG",
210
+ "saint helena, ascension and tristan da cunha": "SH",
211
+ "slovenia": "SI",
212
+ "svalbard and jan mayen": "SJ",
213
+ "slovakia": "SK",
214
+ "sierra leone": "SL",
215
+ "san marino": "SM",
216
+ "senegal": "SN",
217
+ "somalia": "SO",
218
+ "suriname": "SR",
219
+ "south sudan": "SS",
220
+ "sao tome and principe": "ST",
221
+ "el salvador": "SV",
222
+ "sint maarten (dutch part)": "SX",
223
+ "syrian arab republic": "SY",
224
+ "eswatini": "SZ",
225
+ "tristan da cunha": "TA",
226
+ "turks and caicos islands": "TC",
227
+ "chad": "TD",
228
+ "french southern territories": "TF",
229
+ "togo": "TG",
230
+ "thailand": "TH",
231
+ "tajikistan": "TJ",
232
+ "tokelau": "TK",
233
+ "timor-leste": "TL",
234
+ "turkmenistan": "TM",
235
+ "tunisia": "TN",
236
+ "tonga": "TO",
237
+ "türkiye": "TR",
238
+ "trinidad and tobago": "TT",
239
+ "tuvalu": "TV",
240
+ "taiwan, province of china": "TW",
241
+ "united republic of tanzania": "TZ",
242
+ "ukraine": "UA",
243
+ "uganda": "UG",
244
+ "united states minor outlying islands": "UM",
245
+ "united nations": "UN",
246
+ "united states": "US",
247
+ "uruguay": "UY",
248
+ "uzbekistan": "UZ",
249
+ "holy see (vatican city state)": "VA",
250
+ "saint vincent and the grenadines": "VC",
251
+ "venezuela": "VE",
252
+ "british virgin islands": "VG",
253
+ "u.s. virgin islands": "VI",
254
+ "viet nam": "VN",
255
+ "vanuatu": "VU",
256
+ "wallis and futuna": "WF",
257
+ "samoa": "WS",
258
+ "democratic yemen": "YD",
259
+ "yemen": "YE",
260
+ "mayotte": "YT",
261
+ "yugoslavia": "YU",
262
+ "south africa": "ZA",
263
+ "zambia": "ZM",
264
+ "zimbabwe": "ZW",
265
+ "world": "001",
266
+ "africa": "002",
267
+ "north america": "003",
268
+ "south america": "005",
269
+ "oceania": "009",
270
+ "western africa": "011",
271
+ "central america": "013",
272
+ "eastern africa": "014",
273
+ "northern africa": "015",
274
+ "middle africa": "017",
275
+ "southern africa": "018",
276
+ "americas": "019",
277
+ "northern america": "021",
278
+ "caribbean": "029",
279
+ "eastern asia": "030",
280
+ "southern asia": "034",
281
+ "south-eastern asia": "035",
282
+ "southern europe": "039",
283
+ "australia and new zealand": "053",
284
+ "melanesia": "054",
285
+ "micronesia": "057",
286
+ "polynesia": "061",
287
+ "asia": "142",
288
+ "central asia": "143",
289
+ "western asia": "145",
290
+ "europe": "150",
291
+ "eastern europe": "151",
292
+ "northern europe": "154",
293
+ "western europe": "155",
294
+ "sub-saharan africa": "202",
295
+ "latin america and the caribbean": "419"
296
+ }
@@ -0,0 +1,185 @@
1
+ {
2
+ "ab": "Abkhazian",
3
+ "aa": "Afar",
4
+ "af": "Afrikaans",
5
+ "ak": "Akan",
6
+ "sq": "Albanian",
7
+ "am": "Amharic",
8
+ "ar": "Arabic",
9
+ "an": "Aragonese",
10
+ "hy": "Armenian",
11
+ "as": "Assamese",
12
+ "av": "Avaric",
13
+ "ae": "Avestan",
14
+ "ay": "Aymara",
15
+ "az": "Azerbaijani",
16
+ "bm": "Bambara",
17
+ "ba": "Bashkir",
18
+ "eu": "Basque",
19
+ "be": "Belarusian",
20
+ "bn": "Bengali",
21
+ "bi": "Bislama",
22
+ "bs": "Bosnian",
23
+ "br": "Breton",
24
+ "bg": "Bulgarian",
25
+ "my": "Burmese",
26
+ "ca": "Catalan",
27
+ "ch": "Chamorro",
28
+ "ce": "Chechen",
29
+ "ny": "Chichewa",
30
+ "zh": "Chinese",
31
+ "cu": "Slavonic",
32
+ "cv": "Chuvash",
33
+ "kw": "Cornish",
34
+ "co": "Corsican",
35
+ "cr": "Cree",
36
+ "hr": "Croatian",
37
+ "cs": "Czech",
38
+ "da": "Danish",
39
+ "dv": "Divehi",
40
+ "nl": "Dutch",
41
+ "dz": "Dzongkha",
42
+ "en": "English",
43
+ "eo": "Esperanto",
44
+ "et": "Estonian",
45
+ "ee": "Ewe",
46
+ "fo": "Faroese",
47
+ "fj": "Fijian",
48
+ "fi": "Finnish",
49
+ "fr": "French",
50
+ "fy": "Frisian",
51
+ "ff": "Fulah",
52
+ "gd": "Gaelic",
53
+ "gl": "Galician",
54
+ "lg": "Ganda",
55
+ "ka": "Georgian",
56
+ "de": "German",
57
+ "el": "Greek",
58
+ "kl": "Kalaallisut",
59
+ "gn": "Guarani",
60
+ "gu": "Gujarati",
61
+ "ht": "Haitian Creole",
62
+ "ha": "Hausa",
63
+ "he": "Hebrew",
64
+ "hz": "Herero",
65
+ "hi": "Hindi",
66
+ "ho": "Hiri Motu",
67
+ "hu": "Hungarian",
68
+ "is": "Icelandic",
69
+ "io": "Ido",
70
+ "ig": "Igbo",
71
+ "id": "Indonesian",
72
+ "ia": "Interlingua",
73
+ "ie": "Interlingue",
74
+ "iu": "Inuktitut",
75
+ "ik": "Inupiaq",
76
+ "ga": "Irish",
77
+ "it": "Italian",
78
+ "ja": "Japanese",
79
+ "jv": "Javanese",
80
+ "kn": "Kannada",
81
+ "kr": "Kanuri",
82
+ "ks": "Kashmiri",
83
+ "kk": "Kazakh",
84
+ "km": "Khmer",
85
+ "ki": "Kikuyu",
86
+ "rw": "Kinyarwanda",
87
+ "ky": "Kyrgyz",
88
+ "kv": "Komi",
89
+ "kg": "Kongo",
90
+ "ko": "Korean",
91
+ "kj": "Kuanyama",
92
+ "ku": "Kurdish",
93
+ "lo": "Lao",
94
+ "la": "Latin",
95
+ "lv": "Latvian",
96
+ "li": "Limburgan",
97
+ "ln": "Lingala",
98
+ "lt": "Lithuanian",
99
+ "lu": "Luba-Katanga",
100
+ "lb": "Luxembourgish",
101
+ "mk": "Macedonian",
102
+ "mg": "Malagasy",
103
+ "ms": "Malay",
104
+ "ml": "Malayalam",
105
+ "mt": "Maltese",
106
+ "gv": "Manx",
107
+ "mi": "Maori",
108
+ "mr": "Marathi",
109
+ "mh": "Marshallese",
110
+ "mn": "Mongolian",
111
+ "na": "Nauru",
112
+ "nv": "Navajo",
113
+ "nd": "Northern Ndebele",
114
+ "nr": "Southern Ndebele",
115
+ "ng": "Ndonga",
116
+ "ne": "Nepali",
117
+ "no": "Norwegian",
118
+ "nb": "Norwegian Bokmål",
119
+ "nn": "Norwegian Nynorsk",
120
+ "ii": "Nuosu",
121
+ "oc": "Occitan",
122
+ "oj": "Ojibwa",
123
+ "or": "Oriya",
124
+ "om": "Oromo",
125
+ "os": "Ossetian",
126
+ "pi": "Pali",
127
+ "ps": "Pashto",
128
+ "fa": "Persian",
129
+ "pl": "Polish",
130
+ "pt": "Portuguese",
131
+ "pa": "Punjabi",
132
+ "qu": "Quechua",
133
+ "ro": "Romanian",
134
+ "rm": "Romansh",
135
+ "rn": "Rundi",
136
+ "ru": "Russian",
137
+ "se": "Northern Sami",
138
+ "sm": "Samoan",
139
+ "sg": "Sango",
140
+ "sa": "Sanskrit",
141
+ "sc": "Sardinian",
142
+ "sr": "Serbian",
143
+ "sn": "Shona",
144
+ "sd": "Sindhi",
145
+ "si": "Sinhalese",
146
+ "sk": "Slovak",
147
+ "sl": "Slovenian",
148
+ "so": "Somali",
149
+ "st": "Sotho",
150
+ "es": "Spanish",
151
+ "su": "Sundanese",
152
+ "sw": "Swahili",
153
+ "ss": "Swati",
154
+ "sv": "Swedish",
155
+ "tl": "Tagalog",
156
+ "ty": "Tahitian",
157
+ "tg": "Tajik",
158
+ "ta": "Tamil",
159
+ "tt": "Tatar",
160
+ "te": "Telugu",
161
+ "th": "Thai",
162
+ "bo": "Tibetan",
163
+ "ti": "Tigrinya",
164
+ "to": "Tonga",
165
+ "ts": "Tsonga",
166
+ "tn": "Tswana",
167
+ "tr": "Turkish",
168
+ "tk": "Turkmen",
169
+ "tw": "Twi",
170
+ "ug": "Uyghur",
171
+ "uk": "Ukrainian",
172
+ "ur": "Urdu",
173
+ "uz": "Uzbek",
174
+ "ve": "Venda",
175
+ "vi": "Vietnamese",
176
+ "vo": "Volapük",
177
+ "wa": "Walloon",
178
+ "cy": "Welsh",
179
+ "wo": "Wolof",
180
+ "xh": "Xhosa",
181
+ "yi": "Yiddish",
182
+ "yo": "Yoruba",
183
+ "za": "Zhuang",
184
+ "zu": "Zulu"
185
+ }