generaltranslation 2.0.66 → 2.0.68

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/README.md +1 -369
  2. package/dist/codes/{determineLanguage.js → _determineLanguage.js} +5 -2
  3. package/dist/codes/_isSameLanguage.js +22 -0
  4. package/dist/codes/codes.d.ts +1 -8
  5. package/dist/codes/codes.js +61 -287
  6. package/dist/formatting/{_format.js → format.js} +40 -3
  7. package/dist/formatting/{_string_content.js → string_content.js} +21 -12
  8. package/dist/index.d.ts +60 -77
  9. package/dist/index.js +95 -73
  10. package/dist/settings/libraryDefaultLanguage.d.ts +2 -0
  11. package/dist/settings/libraryDefaultLanguage.js +4 -0
  12. package/dist/translation/dictionaries/_translateBundle.js +2 -2
  13. package/dist/translation/dictionaries/_updateProjectDictionary.js +4 -5
  14. package/dist/translation/react/_translateReact.js +2 -2
  15. package/dist/translation/strings/_translate.js +2 -2
  16. package/package.json +2 -2
  17. package/dist/codes/15924/CodeToScript.json +0 -215
  18. package/dist/codes/15924/ScriptToCode.json +0 -215
  19. package/dist/codes/3166/CodeToRegion.json +0 -296
  20. package/dist/codes/3166/RegionToCode.json +0 -296
  21. package/dist/codes/639-1/CodeToLanguage.json +0 -185
  22. package/dist/codes/639-1/LanguageToCode.json +0 -227
  23. package/dist/codes/639-3/CodeToLanguageTriletter.json +0 -186
  24. package/dist/codes/639-3/LanguageToCodeTriletter.json +0 -228
  25. package/dist/codes/getLanguageDirection.js +0 -71
  26. package/dist/codes/predefined/Predefined.json +0 -28
  27. /package/dist/codes/{determineLanguage.d.ts → _determineLanguage.d.ts} +0 -0
  28. /package/dist/codes/{getLanguageDirection.d.ts → _isSameLanguage.d.ts} +0 -0
  29. /package/dist/formatting/{_format.d.ts → format.d.ts} +0 -0
  30. /package/dist/formatting/{_string_content.d.ts → string_content.d.ts} +0 -0
@@ -1,296 +0,0 @@
1
- {
2
- "AC": "Ascension Island",
3
- "AD": "Andorra",
4
- "AE": "United Arab Emirates",
5
- "AF": "Afghanistan",
6
- "AG": "Antigua and Barbuda",
7
- "AI": "Anguilla",
8
- "AL": "Albania",
9
- "AM": "Armenia",
10
- "AN": "Netherlands Antilles",
11
- "AO": "Angola",
12
- "AQ": "Antarctica",
13
- "AR": "Argentina",
14
- "AS": "American Samoa",
15
- "AT": "Austria",
16
- "AU": "Australia",
17
- "AW": "Aruba",
18
- "AX": "Åland Islands",
19
- "AZ": "Azerbaijan",
20
- "BA": "Bosnia and Herzegovina",
21
- "BB": "Barbados",
22
- "BD": "Bangladesh",
23
- "BE": "Belgium",
24
- "BF": "Burkina Faso",
25
- "BG": "Bulgaria",
26
- "BH": "Bahrain",
27
- "BI": "Burundi",
28
- "BJ": "Benin",
29
- "BL": "Saint Barthélemy",
30
- "BM": "Bermuda",
31
- "BN": "Brunei Darussalam",
32
- "BO": "Bolivia",
33
- "BQ": "Bonaire, Sint Eustatius and Saba",
34
- "BR": "Brazil",
35
- "BS": "Bahamas",
36
- "BT": "Bhutan",
37
- "BV": "Bouvet Island",
38
- "BW": "Botswana",
39
- "BY": "Belarus",
40
- "BZ": "Belize",
41
- "CA": "Canada",
42
- "CC": "Cocos (Keeling) Islands",
43
- "CD": "The Democratic Republic of the Congo",
44
- "CF": "Central African Republic",
45
- "CG": "Congo",
46
- "CH": "Switzerland",
47
- "CI": "Côte d'Ivoire",
48
- "CK": "Cook Islands",
49
- "CL": "Chile",
50
- "CM": "Cameroon",
51
- "CN": "China",
52
- "CO": "Colombia",
53
- "CP": "Clipperton Island",
54
- "CQ": "Sark",
55
- "CR": "Costa Rica",
56
- "CS": "Serbia and Montenegro",
57
- "CU": "Cuba",
58
- "CV": "Cabo Verde",
59
- "CW": "Curaçao",
60
- "CX": "Christmas Island",
61
- "CY": "Cyprus",
62
- "CZ": "Czechia",
63
- "DE": "Germany",
64
- "DG": "Diego Garcia",
65
- "DJ": "Djibouti",
66
- "DK": "Denmark",
67
- "DM": "Dominica",
68
- "DO": "Dominican Republic",
69
- "DZ": "Algeria",
70
- "EA": "Ceuta, Melilla",
71
- "EC": "Ecuador",
72
- "EE": "Estonia",
73
- "EG": "Egypt",
74
- "EH": "Western Sahara",
75
- "ER": "Eritrea",
76
- "ES": "Spain",
77
- "ET": "Ethiopia",
78
- "EU": "European Union",
79
- "EZ": "Eurozone",
80
- "FI": "Finland",
81
- "FJ": "Fiji",
82
- "FK": "Falkland Islands (Malvinas)",
83
- "FM": "Federated States of Micronesia",
84
- "FO": "Faroe Islands",
85
- "FR": "France",
86
- "GA": "Gabon",
87
- "GB": "United Kingdom",
88
- "GD": "Grenada",
89
- "GE": "Georgia",
90
- "GF": "French Guiana",
91
- "GG": "Guernsey",
92
- "GH": "Ghana",
93
- "GI": "Gibraltar",
94
- "GL": "Greenland",
95
- "GM": "Gambia",
96
- "GN": "Guinea",
97
- "GP": "Guadeloupe",
98
- "GQ": "Equatorial Guinea",
99
- "GR": "Greece",
100
- "GS": "South Georgia and the South Sandwich Islands",
101
- "GT": "Guatemala",
102
- "GU": "Guam",
103
- "GW": "Guinea-Bissau",
104
- "GY": "Guyana",
105
- "HK": "Hong Kong",
106
- "HM": "Heard Island and McDonald Islands",
107
- "HN": "Honduras",
108
- "HR": "Croatia",
109
- "HT": "Haiti",
110
- "HU": "Hungary",
111
- "IC": "Canary Islands",
112
- "ID": "Indonesia",
113
- "IE": "Ireland",
114
- "IL": "Israel",
115
- "IM": "Isle of Man",
116
- "IN": "India",
117
- "IO": "British Indian Ocean Territory",
118
- "IQ": "Iraq",
119
- "IR": "Islamic Republic of Iran",
120
- "IS": "Iceland",
121
- "IT": "Italy",
122
- "JE": "Jersey",
123
- "JM": "Jamaica",
124
- "JO": "Jordan",
125
- "JP": "Japan",
126
- "KE": "Kenya",
127
- "KG": "Kyrgyzstan",
128
- "KH": "Cambodia",
129
- "KI": "Kiribati",
130
- "KM": "Comoros",
131
- "KN": "Saint Kitts and Nevis",
132
- "KP": "Democratic People's Republic of Korea",
133
- "KR": "Republic of Korea",
134
- "KW": "Kuwait",
135
- "KY": "Cayman Islands",
136
- "KZ": "Kazakhstan",
137
- "LA": "Lao People's Democratic Republic",
138
- "LB": "Lebanon",
139
- "LC": "Saint Lucia",
140
- "LI": "Liechtenstein",
141
- "LK": "Sri Lanka",
142
- "LR": "Liberia",
143
- "LS": "Lesotho",
144
- "LT": "Lithuania",
145
- "LU": "Luxembourg",
146
- "LV": "Latvia",
147
- "LY": "Libya",
148
- "MA": "Morocco",
149
- "MC": "Monaco",
150
- "MD": "Moldova",
151
- "ME": "Montenegro",
152
- "MF": "Saint Martin (French part)",
153
- "MG": "Madagascar",
154
- "MH": "Marshall Islands",
155
- "MK": "North Macedonia",
156
- "ML": "Mali",
157
- "MM": "Myanmar",
158
- "MN": "Mongolia",
159
- "MO": "Macao",
160
- "MP": "Northern Mariana Islands",
161
- "MQ": "Martinique",
162
- "MR": "Mauritania",
163
- "MS": "Montserrat",
164
- "MT": "Malta",
165
- "MU": "Mauritius",
166
- "MV": "Maldives",
167
- "MW": "Malawi",
168
- "MX": "Mexico",
169
- "MY": "Malaysia",
170
- "MZ": "Mozambique",
171
- "NA": "Namibia",
172
- "NC": "New Caledonia",
173
- "NE": "Niger",
174
- "NF": "Norfolk Island",
175
- "NG": "Nigeria",
176
- "NI": "Nicaragua",
177
- "NL": "Netherlands",
178
- "NO": "Norway",
179
- "NP": "Nepal",
180
- "NR": "Nauru",
181
- "NU": "Niue",
182
- "NZ": "New Zealand",
183
- "OM": "Oman",
184
- "PA": "Panama",
185
- "PE": "Peru",
186
- "PF": "French Polynesia",
187
- "PG": "Papua New Guinea",
188
- "PH": "Philippines",
189
- "PK": "Pakistan",
190
- "PL": "Poland",
191
- "PM": "Saint Pierre and Miquelon",
192
- "PN": "Pitcairn",
193
- "PR": "Puerto Rico",
194
- "PS": "State of Palestine",
195
- "PT": "Portugal",
196
- "PW": "Palau",
197
- "PY": "Paraguay",
198
- "QA": "Qatar",
199
- "RE": "Réunion",
200
- "RO": "Romania",
201
- "RS": "Serbia",
202
- "RU": "Russian Federation",
203
- "RW": "Rwanda",
204
- "SA": "Saudi Arabia",
205
- "SB": "Solomon Islands",
206
- "SC": "Seychelles",
207
- "SD": "Sudan",
208
- "SE": "Sweden",
209
- "SG": "Singapore",
210
- "SH": "Saint Helena, Ascension and Tristan da Cunha",
211
- "SI": "Slovenia",
212
- "SJ": "Svalbard and Jan Mayen",
213
- "SK": "Slovakia",
214
- "SL": "Sierra Leone",
215
- "SM": "San Marino",
216
- "SN": "Senegal",
217
- "SO": "Somalia",
218
- "SR": "Suriname",
219
- "SS": "South Sudan",
220
- "ST": "Sao Tome and Principe",
221
- "SV": "El Salvador",
222
- "SX": "Sint Maarten (Dutch part)",
223
- "SY": "Syrian Arab Republic",
224
- "SZ": "Eswatini",
225
- "TA": "Tristan da Cunha",
226
- "TC": "Turks and Caicos Islands",
227
- "TD": "Chad",
228
- "TF": "French Southern Territories",
229
- "TG": "Togo",
230
- "TH": "Thailand",
231
- "TJ": "Tajikistan",
232
- "TK": "Tokelau",
233
- "TL": "Timor-Leste",
234
- "TM": "Turkmenistan",
235
- "TN": "Tunisia",
236
- "TO": "Tonga",
237
- "TR": "Türkiye",
238
- "TT": "Trinidad and Tobago",
239
- "TV": "Tuvalu",
240
- "TW": "Taiwan, Province of China",
241
- "TZ": "United Republic of Tanzania",
242
- "UA": "Ukraine",
243
- "UG": "Uganda",
244
- "UM": "United States Minor Outlying Islands",
245
- "UN": "United Nations",
246
- "US": "United States",
247
- "UY": "Uruguay",
248
- "UZ": "Uzbekistan",
249
- "VA": "Holy See (Vatican City State)",
250
- "VC": "Saint Vincent and the Grenadines",
251
- "VE": "Venezuela",
252
- "VG": "British Virgin Islands",
253
- "VI": "U.S. Virgin Islands",
254
- "VN": "Viet Nam",
255
- "VU": "Vanuatu",
256
- "WF": "Wallis and Futuna",
257
- "WS": "Samoa",
258
- "YD": "Democratic Yemen",
259
- "YE": "Yemen",
260
- "YT": "Mayotte",
261
- "YU": "Yugoslavia",
262
- "ZA": "South Africa",
263
- "ZM": "Zambia",
264
- "ZW": "Zimbabwe",
265
- "001": "World",
266
- "002": "Africa",
267
- "003": "North America",
268
- "005": "South America",
269
- "009": "Oceania",
270
- "011": "Western Africa",
271
- "013": "Central America",
272
- "014": "Eastern Africa",
273
- "015": "Northern Africa",
274
- "017": "Middle Africa",
275
- "018": "Southern Africa",
276
- "019": "Americas",
277
- "021": "Northern America",
278
- "029": "Caribbean",
279
- "030": "Eastern Asia",
280
- "034": "Southern Asia",
281
- "035": "South-Eastern Asia",
282
- "039": "Southern Europe",
283
- "053": "Australia and New Zealand",
284
- "054": "Melanesia",
285
- "057": "Micronesia",
286
- "061": "Polynesia",
287
- "142": "Asia",
288
- "143": "Central Asia",
289
- "145": "Western Asia",
290
- "150": "Europe",
291
- "151": "Eastern Europe",
292
- "154": "Northern Europe",
293
- "155": "Western Europe",
294
- "202": "Sub-Saharan Africa",
295
- "419": "Latin America and the Caribbean"
296
- }
@@ -1,296 +0,0 @@
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
- }