generaltranslation 2.0.67 → 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 +55 -72
  9. package/dist/index.js +88 -66
  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,228 +0,0 @@
1
- {
2
- "abkhazian": "abk",
3
- "afar": "aar",
4
- "afrikaans": "afr",
5
- "akan": "aka",
6
- "albanian": "sqi",
7
- "amharic": "amh",
8
- "ancient greek": "grc",
9
- "arabic": "ara",
10
- "aragonese": "arg",
11
- "armenian": "hye",
12
- "assamese": "asm",
13
- "avaric": "ava",
14
- "avestan": "ave",
15
- "aymara": "aym",
16
- "azerbaijani": "aze",
17
- "bambara": "bam",
18
- "bashkir": "bak",
19
- "basque": "eus",
20
- "belarusian": "bel",
21
- "bengali": "ben",
22
- "bislama": "bis",
23
- "bosnian": "bos",
24
- "breton": "bre",
25
- "bulgarian": "bul",
26
- "burmese": "mya",
27
- "catalan": "cat",
28
- "valencian": "cat",
29
- "chamorro": "cha",
30
- "chechen": "che",
31
- "chichewa": "nya",
32
- "chewa": "nya",
33
- "nyanja": "nya",
34
- "chinese": "zho",
35
- "mandarin": "zho",
36
- "church slavonic": "chu",
37
- "old slavonic": "chu",
38
- "old church slavonic": "chu",
39
- "slavonic": "chu",
40
- "chuvash": "chv",
41
- "cornish": "cor",
42
- "corsican": "cos",
43
- "cree": "cre",
44
- "croatian": "hrv",
45
- "czech": "ces",
46
- "danish": "dan",
47
- "divehi": "div",
48
- "dhivehi": "div",
49
- "maldivian": "div",
50
- "dutch": "nld",
51
- "flemish": "nld",
52
- "dzongkha": "dzo",
53
- "english": "eng",
54
- "esperanto": "epo",
55
- "estonian": "est",
56
- "ewe": "ewe",
57
- "faroese": "fao",
58
- "fijian": "fij",
59
- "finnish": "fin",
60
- "french": "fra",
61
- "western frisian": "fry",
62
- "frisian": "fry",
63
- "fulah": "ful",
64
- "gaelic": "gla",
65
- "scottish gaelic": "gla",
66
- "galician": "glg",
67
- "ganda": "lug",
68
- "georgian": "kat",
69
- "german": "deu",
70
- "greek": "ell",
71
- "modern greek": "ell",
72
- "kalaallisut": "kal",
73
- "greenlandic": "kal",
74
- "guarani": "grn",
75
- "gujarati": "guj",
76
- "haitian": "hat",
77
- "haitian creole": "hat",
78
- "hausa": "hau",
79
- "hebrew": "heb",
80
- "herero": "her",
81
- "hindi": "hin",
82
- "hiri motu": "hmo",
83
- "hungarian": "hun",
84
- "icelandic": "isl",
85
- "ido": "ido",
86
- "igbo": "ibo",
87
- "indonesian": "ind",
88
- "interlingua": "ina",
89
- "interlingue": "ile",
90
- "occidental": "ile",
91
- "inuktitut": "iku",
92
- "inupiaq": "ipk",
93
- "irish": "gle",
94
- "italian": "ita",
95
- "japanese": "jpn",
96
- "javanese": "jav",
97
- "kannada": "kan",
98
- "kanuri": "kau",
99
- "kashmiri": "kas",
100
- "kazakh": "kaz",
101
- "central khmer": "khm",
102
- "kikuyu": "kik",
103
- "gikuyu": "kik",
104
- "kinyarwanda": "kin",
105
- "kirghiz": "kir",
106
- "kyrgyz": "kir",
107
- "komi": "kom",
108
- "kongo": "kon",
109
- "korean": "kor",
110
- "kuanyama": "kua",
111
- "kwanyama": "kua",
112
- "kurdish": "kur",
113
- "lao": "lao",
114
- "latin": "lat",
115
- "latvian": "lav",
116
- "limburgan": "lim",
117
- "limburger": "lim",
118
- "limburgish": "lim",
119
- "lingala": "lin",
120
- "lithuanian": "lit",
121
- "luba-katanga": "lub",
122
- "luxembourgish": "ltz",
123
- "letzeburgesch": "ltz",
124
- "macedonian": "mkd",
125
- "malagasy": "mlg",
126
- "malay": "msa",
127
- "malayalam": "mal",
128
- "maltese": "mlt",
129
- "manx": "glv",
130
- "maori": "mri",
131
- "marathi": "mar",
132
- "marshallese": "mah",
133
- "mongolian": "mon",
134
- "nauru": "nau",
135
- "navajo": "nav",
136
- "navaho": "nav",
137
- "north ndebele": "nde",
138
- "south ndebele": "nbl",
139
- "northern ndebele": "nde",
140
- "southern ndebele": "nbl",
141
- "ndonga": "ndo",
142
- "nepali": "nep",
143
- "norwegian": "nor",
144
- "norwegian bokmål": "nob",
145
- "norwegian nynorsk": "nno",
146
- "sichuan yi": "iii",
147
- "nuosu": "iii",
148
- "occitan": "oci",
149
- "ojibwa": "oji",
150
- "ojibwe": "oji",
151
- "oriya": "ori",
152
- "odia": "ori",
153
- "oromo": "orm",
154
- "ossetian": "oss",
155
- "ossetic": "oss",
156
- "pali": "pli",
157
- "pashto": "pus",
158
- "pushto": "pus",
159
- "persian": "fas",
160
- "polish": "pol",
161
- "portuguese": "por",
162
- "punjabi": "pan",
163
- "panjabi": "pan",
164
- "quechua": "que",
165
- "romanian": "ron",
166
- "moldavian": "ron",
167
- "moldovan": "ron",
168
- "romansh": "roh",
169
- "rundi": "run",
170
- "kirundi": "run",
171
- "russian": "rus",
172
- "northern sami": "sme",
173
- "sami": "sme",
174
- "samoan": "smo",
175
- "sango": "sag",
176
- "sanskrit": "san",
177
- "sardinian": "srd",
178
- "serbian": "srp",
179
- "shona": "sna",
180
- "sindhi": "snd",
181
- "sinhala": "sin",
182
- "sinhalese": "sin",
183
- "slovak": "slk",
184
- "slovenian": "slv",
185
- "slovene": "slv",
186
- "somali": "som",
187
- "southern sotho": "sot",
188
- "sotho": "sot",
189
- "spanish": "spa",
190
- "castilian": "spa",
191
- "sundanese": "sun",
192
- "swahili": "swa",
193
- "swati": "ssw",
194
- "swedish": "swe",
195
- "tagalog": "tgl",
196
- "tahitian": "tah",
197
- "tajik": "tgk",
198
- "tamil": "tam",
199
- "tatar": "tat",
200
- "telugu": "tel",
201
- "thai": "tha",
202
- "tibetan": "bod",
203
- "tigrinya": "tir",
204
- "tonga": "ton",
205
- "tongan": "ton",
206
- "tsonga": "tso",
207
- "tswana": "tsn",
208
- "turkish": "tur",
209
- "turkmen": "tuk",
210
- "twi": "twi",
211
- "uighur": "uig",
212
- "uyghur": "uig",
213
- "ukrainian": "ukr",
214
- "urdu": "urd",
215
- "uzbek": "uzb",
216
- "venda": "ven",
217
- "vietnamese": "vie",
218
- "volapük": "vol",
219
- "walloon": "wln",
220
- "welsh": "cym",
221
- "wolof": "wol",
222
- "xhosa": "xho",
223
- "yiddish": "yid",
224
- "yoruba": "yor",
225
- "zhuang": "zha",
226
- "chuang": "zha",
227
- "zulu": "zul"
228
- }
@@ -1,71 +0,0 @@
1
- "use strict";
2
- /* ----- BEGIN YAHOO COPYRIGHT ----- */
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.default = _getLanguageDirection;
5
- /*
6
-
7
- Copyright 2015 Yahoo Inc. All rights reserved.
8
-
9
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
10
-
11
- * Redistributions of source code must retain the above copyright
12
- notice, this list of conditions and the following disclaimer.
13
-
14
- * Redistributions in binary form must reproduce the above copyright
15
- notice, this list of conditions and the following disclaimer in the
16
- documentation and/or other materials provided with the distribution.
17
-
18
- * Neither the name of the Yahoo Inc. nor the
19
- names of its contributors may be used to endorse or promote products
20
- derived from this software without specific prior written permission.
21
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
-
23
- */
24
- /**
25
- * List of languages that are written from right to left.
26
- * Each entry contains the language code and the language name.
27
- *
28
- * @type {string[]}
29
- */
30
- var rtlLanguages = [
31
- 'ae', /* Avestan */
32
- 'ar', /* 'العربية', Arabic */
33
- 'arc', /* Aramaic */
34
- 'bcc', /* 'بلوچی مکرانی', Southern Balochi */
35
- 'bqi', /* 'بختياري', Bakthiari */
36
- 'ckb', /* 'Soranî / کوردی', Sorani */
37
- 'dv', /* Dhivehi */
38
- 'fa', /* 'فارسی', Persian */
39
- 'glk', /* 'گیلکی', Gilaki */
40
- 'he', /* 'עברית', Hebrew */
41
- 'ku', /* 'Kurdî / كوردی', Kurdish */
42
- 'mzn', /* 'مازِرونی', Mazanderani */
43
- 'nqo', /* N'Ko */
44
- 'pnb', /* 'پنجابی', Western Punjabi */
45
- 'prs', /* 'دری', Darī */
46
- 'ps', /* 'پښتو', Pashto, */
47
- 'sd', /* 'سنڌي', Sindhi */
48
- 'ug', /* 'Uyghurche / ئۇيغۇرچە', Uyghur */
49
- 'ur', /* 'اردو', Urdu */
50
- 'yi' /* 'ייִדיש', Yiddish */
51
- ];
52
- /* ----- END YAHOO COPYRIGHT ----- */
53
- var codes_js_1 = require("./codes.js");
54
- /**
55
- * Get the text direction for a given language code.
56
- *
57
- * @param {string} code - The language code to check.
58
- * @returns {string} - 'rtl' if the language is right-to-left, otherwise 'ltr'.
59
- * @internal
60
- */
61
- function _getLanguageDirection(code) {
62
- return rtlLanguages.some(function (language) {
63
- var lo = (0, codes_js_1._getLanguageObject)(language);
64
- var clo = (0, codes_js_1._getLanguageObject)(code);
65
- if (!lo || !clo)
66
- return false;
67
- if (lo.script && clo.script && lo.script !== clo.script)
68
- return false;
69
- return (0, codes_js_1._isSameLanguage)(code, language);
70
- }) ? 'rtl' : 'ltr';
71
- }
@@ -1,28 +0,0 @@
1
- {
2
- "en-US": "English",
3
- "en-GB": "British English",
4
- "en-CA": "Canadian English",
5
- "en-AU": "Australian English",
6
- "es-ES": "Spanish",
7
- "es-MX": "Mexican Spanish",
8
- "es-AR": "Argentinian Spanish",
9
- "es-CO": "Colombian Spanish",
10
- "fr-FR": "French",
11
- "fr-CA": "Canadian French",
12
- "fr-BE": "Belgian French",
13
- "fr-CH": "Swiss French",
14
- "zh-CN": "Mandarin Chinese",
15
- "zh-TW": "Traditional Chinese",
16
- "zh-HK": "Hong Kong Chinese",
17
- "pt-PT": "Portuguese",
18
- "pt-BR": "Brazilian Portuguese",
19
- "de-DE": "German",
20
- "de-AT": "Austrian German",
21
- "de-CH": "Swiss German",
22
- "ar-SA": "Saudi Arabic",
23
- "ar-EG": "Egyptian Arabic",
24
- "ar-AE": "Emirati Arabic",
25
- "ar-MA": "Moroccan Arabic",
26
- "nl-BE": "Belgian Dutch",
27
- "it-CH": "Swiss Italian"
28
- }
File without changes