j1-template 2021.2.5 → 2021.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/modules/connectors/translators/google-translator.html +2 -1
  3. data/_layouts/default.html +0 -1
  4. data/assets/data/iso-639-language-codes-flags.json +224 -0
  5. data/assets/data/{translator_languages.json → iso-639-language-codes.json} +111 -142
  6. data/assets/data/translator.html +23 -19
  7. data/assets/themes/j1/adapter/js/translator.1.js +525 -0
  8. data/assets/themes/j1/adapter/js/translator.js +107 -168
  9. data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +27 -12
  10. data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.min.css +1 -1
  11. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +27 -12
  12. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +1 -1
  13. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +59 -22
  14. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
  15. data/assets/themes/j1/modules/translator/js/translator.js +217 -242
  16. data/assets/themes/j1/modules/translator/js/translator.min.js +2 -2
  17. data/lib/j1/version.rb +1 -1
  18. data/lib/starter_web/Gemfile +1 -1
  19. data/lib/starter_web/_config.yml +1 -1
  20. data/lib/starter_web/_data/j1_config.yml +2 -22
  21. data/lib/starter_web/_data/modules/defaults/translator.yml +77 -64
  22. data/lib/starter_web/_data/modules/translator.yml +1 -0
  23. data/lib/starter_web/_includes/attributes.asciidoc +1 -1
  24. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  25. data/lib/starter_web/package.json +1 -1
  26. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +3 -3
  27. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  28. data/lib/starter_web/utilsrv/package.json +1 -1
  29. metadata +5 -4
  30. data/assets/data/msdropdown.json +0 -155
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c3932c4a5b4e39fc50c1382fbd810380d0c86bae03335ae127cf77134c1eef0
4
- data.tar.gz: 75fe96704e5c071ef461fd56cd1d9da641c33429886dc7193ed879024f9c9bb9
3
+ metadata.gz: f64e1d499ca9e8ece6d9a0cbe0801a435bca3c67cb88933a4d0612df00012015
4
+ data.tar.gz: 50a27e100d831f61f1f4a0f5a9cf83b063faf91a229f58082c028f93da7ff400
5
5
  SHA512:
6
- metadata.gz: b8c55f92c35f501797f6afef77e9aef2febc725abd04c6823d364cc9b28a1ec3d3362e2b51a3ba88210c465f8f11901ab47821cbda544df097da57e14d35276d
7
- data.tar.gz: 680b669b2414889796575cd8a3cac157b8d2ec63222e8cb73a37799428ace01ce0ff3770f2ded6306f215514b1890a755cfd4628bc011197e2c28493facf5b74
6
+ metadata.gz: fb2a39afa3c93c9c9a90bdf0842bd5682e707c6a4826a883e2891667ebee55fc4db3b58f5de1119f29925dd91c2458074a12641e1e61e1a161e39ac881dcb794
7
+ data.tar.gz: 074bc700d955b9920639dfcbe8af2fe5612ab37e2769e5412039021b72a133661cccfd183bf3b9b20bd1e5fa724ac7e2a92a484d10df68f0b7fbb910991a689b
@@ -28,10 +28,11 @@
28
28
  <!-- [INFO ] [j1.modules.connectors.translation ] [ place callback for the Google Translator API ] -->
29
29
  <script>
30
30
  function googleTranslateElementInit() {
31
- new google.translate.TranslateElement({
31
+ var gtAPI = new google.translate.TranslateElement({
32
32
  pageLanguage: 'en',
33
33
  layout: google.translate.TranslateElement.FloatPosition.TOP_LEFT
34
34
  },
35
35
  'google_translate_element');
36
+ j1.adapter.translator.postTranslateElementInit(gtAPI);
36
37
  }
37
38
  </script>
@@ -188,7 +188,6 @@ layout: compress
188
188
  <meta charset="utf-8" />
189
189
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
190
190
  <meta name="viewport" content="width=device-width, initial-scale=1" />
191
- <meta name="robots" content="noindex, nofollow">
192
191
  <link rel="icon" type="{{site.favicon.type}}" href="{{site.data.j1_config.image_path}}/{{site.favicon.image}}" />
193
192
  <title>{{title}} · {{http_error}}</title>
194
193
  <style> .my { margin-top: 8.5rem !important;} </style>
@@ -0,0 +1,224 @@
1
+ ---
2
+ regenerate: true
3
+ exclude_from_search: true
4
+ ---
5
+
6
+ {% capture cache %}
7
+
8
+ {% comment %}
9
+ # -----------------------------------------------------------------------------
10
+ # ~/assets/data/iso-639-language-codes-flags.json
11
+ # The Liquid template is used by J1 Translator module to create dropdown
12
+ # elements DYNAMICALLY
13
+ #
14
+ # Product/Info:
15
+ # https://jekyll.one
16
+ #
17
+ # Copyright · C) 2021 Juergen Adams
18
+ #
19
+ # J1 Template is licensed under the MIT License.
20
+ # For details, see https://jekyll.one
21
+ # -----------------------------------------------------------------------------
22
+ # NOTE:
23
+ # Be carefull change the Liquid code. If the code is changed, check the
24
+ # integrity of the JSON data created. Invalid JSON data will cause the
25
+ # the J1 Translator module to fail.
26
+ # -----------------------------------------------------------------------------
27
+ # NOTE:
28
+ # Google translator, language codes
29
+ # https://gist.github.com/JT5D/a2fdfefa80124a06f5a9
30
+ # ISO-639 language codes
31
+ # https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
32
+ # http://www.lingoes.net/en/translator/langcode.htm
33
+ # -----------------------------------------------------------------------------
34
+ # Test data:
35
+ # {{ liquid_var | debug }}
36
+ # -----------------------------------------------------------------------------
37
+ {% endcomment %}
38
+
39
+ {% comment %} Set config data
40
+ -------------------------------------------------------------------------------- {% endcomment %}
41
+ {% assign environment = site.environment %}
42
+
43
+ {
44
+ "iso-639-languages":
45
+ [
46
+ {"imageCss": "flag-icon flag-icon-za rectangle size-md", "value": "af", "text": "Afrikaans · South Africa"},
47
+ {"imageCss": "flag-icon flag-icon-gh rectangle size-md", "value": "ak", "text": "Akan · Ghana"},
48
+ {"imageCss": "flag-icon flag-icon-al rectangle size-md", "value": "sq", "text": "Albanian · Albania"},
49
+ {"imageCss": "flag-icon flag-icon-et rectangle size-md", "value": "am", "text": "Amharic · Ethiopia"},
50
+ {"imageCss": "flag-icon flag-icon-dz rectangle size-md", "value": "ar", "text": "Arabic · Algeria"},
51
+ {"imageCss": "flag-icon flag-icon-bh rectangle size-md", "value": "ar", "text": "Arabic · Bahrain"},
52
+ {"imageCss": "flag-icon flag-icon-td rectangle size-md", "value": "ar", "text": "Arabic · Chad"},
53
+ {"imageCss": "flag-icon flag-icon-km rectangle size-md", "value": "ar", "text": "Arabic · Comoros"},
54
+ {"imageCss": "flag-icon flag-icon-dj rectangle size-md", "value": "ar", "text": "Arabic · Djibouti"},
55
+ {"imageCss": "flag-icon flag-icon-eg rectangle size-md", "value": "ar", "text": "Arabic · Egypt"},
56
+ {"imageCss": "flag-icon flag-icon-iq rectangle size-md", "value": "ar", "text": "Arabic · Iraq"},
57
+ {"imageCss": "flag-icon flag-icon-jo rectangle size-md", "value": "ar", "text": "Arabic · Jordan"},
58
+ {"imageCss": "flag-icon flag-icon-kw rectangle size-md", "value": "ar", "text": "Arabic · Kuwait"},
59
+ {"imageCss": "flag-icon flag-icon-lb rectangle size-md", "value": "ar", "text": "Arabic · Lebanon"},
60
+ {"imageCss": "flag-icon flag-icon-ly rectangle size-md", "value": "ar", "text": "Arabic · Libya"},
61
+ {"imageCss": "flag-icon flag-icon-mr rectangle size-md", "value": "ar", "text": "Arabic · Mauritania"},
62
+ {"imageCss": "flag-icon flag-icon-ma rectangle size-md", "value": "ar", "text": "Arabic · Morocco"},
63
+ {"imageCss": "flag-icon flag-icon-om rectangle size-md", "value": "ar", "text": "Arabic · Oman"},
64
+ {"imageCss": "flag-icon flag-icon-ps rectangle size-md", "value": "ar", "text": "Arabic · Palestine"},
65
+ {"imageCss": "flag-icon flag-icon-qa rectangle size-md", "value": "ar", "text": "Arabic · Qatar"},
66
+ {"imageCss": "flag-icon flag-icon-sa rectangle size-md", "value": "ar", "text": "Arabic · Saudi Arabia"},
67
+ {"imageCss": "flag-icon flag-icon-so rectangle size-md", "value": "ar", "text": "Arabic · Somalia"},
68
+ {"imageCss": "flag-icon flag-icon-sd rectangle size-md", "value": "ar", "text": "Arabic · Sudan"},
69
+ {"imageCss": "flag-icon flag-icon-sy rectangle size-md", "value": "ar", "text": "Arabic · Syria"},
70
+ {"imageCss": "flag-icon flag-icon-tn rectangle size-md", "value": "ar", "text": "Arabic · Tunisia"},
71
+ {"imageCss": "flag-icon flag-icon-ae rectangle size-md", "value": "ar", "text": "Arabic · United Arab Emirates"},
72
+ {"imageCss": "flag-icon flag-icon-ye rectangle size-md", "value": "ar", "text": "Arabic · Yemen"},
73
+ {"imageCss": "flag-icon flag-icon-tz rectangle size-md", "value": "ar", "text": "Arabic · Zanzibar"},
74
+ {"imageCss": "flag-icon flag-icon-eh rectangle size-md", "value": "ar", "text": "Arabic · Western Sahara"},
75
+ {"imageCss": "flag-icon flag-icon-am rectangle size-md", "value": "hy", "text": "Armenian · Armenia"},
76
+ {"imageCss": "flag-icon flag-icon-az rectangle size-md", "value": "az", "text": "Azerbaijani · Azerbaijan"},
77
+ {"imageCss": "flag-icon flag-icon-es rectangle size-md", "value": "eu", "text": "Basque · Spain"},
78
+ {"imageCss": "flag-icon flag-icon-by rectangle size-md", "value": "be", "text": "Belarusian · Belarus"},
79
+ {"imageCss": "flag-icon flag-icon-zm rectangle size-md", "value": "bem", "text": "Bemba · Zambia"},
80
+ {"imageCss": "flag-icon flag-icon-in rectangle size-md", "value": "bn", "text": "Bengali · India"},
81
+ {"imageCss": "flag-icon flag-icon-in rectangle size-md", "value": "bh", "text": "Bihari · India"},
82
+ {"imageCss": "flag-icon flag-icon-ba rectangle size-md", "value": "bs", "text": "Bosnian · Bosnia and Herzegovina"},
83
+ {"imageCss": "flag-icon flag-icon-fr rectangle size-md", "value": "br", "text": "Breton · France"},
84
+ {"imageCss": "flag-icon flag-icon-bg rectangle size-md", "value": "bg", "text": "Bulgarian · Bulgaria"},
85
+ {"imageCss": "flag-icon flag-icon-kh rectangle size-md", "value": "km", "text": "Cambodian · Cambodia"},
86
+ {"imageCss": "flag-icon flag-icon-es rectangle size-md", "value": "ca", "text": "Catalan · Spain"},
87
+ {"imageCss": "flag-icon flag-icon-us rectangle size-md", "value": "chr", "text": "Cherokee · United States"},
88
+ {"imageCss": "flag-icon flag-icon-mz rectangle size-md", "value": "ny", "text": "Chichewa · Mozambique"},
89
+ {"imageCss": "flag-icon flag-icon-cn rectangle size-md", "value": "zh-CN", "text": "Chinese · Simplified"},
90
+ {"imageCss": "flag-icon flag-icon-cn rectangle size-md", "value": "zh-TW", "text": "Chinese · Traditional"},
91
+ {"imageCss": "flag-icon flag-icon-fr rectangle size-md", "value": "co", "text": "Corsican · France"},
92
+ {"imageCss": "flag-icon flag-icon-hr rectangle size-md", "value": "hr", "text": "Croatian · Croatia"},
93
+ {"imageCss": "flag-icon flag-icon-cz rectangle size-md", "value": "cs", "text": "Czech · Czech Republic"},
94
+ {"imageCss": "flag-icon flag-icon-dk rectangle size-md", "value": "da", "text": "Danish · Denmark"},
95
+ {"imageCss": "flag-icon flag-icon-nl rectangle size-md", "value": "nl", "text": "Dutch · Netherlands"},
96
+ {"imageCss": "flag-icon flag-icon-gb rectangle size-md", "value": "en", "text": "English · United Kingdom"},
97
+ {"imageCss": "flag-icon flag-icon-ee rectangle size-md", "value": "et", "text": "Estonian · Estonia"},
98
+ {"imageCss": "flag-icon flag-icon-gh rectangle size-md", "value": "ee", "text": "Ewe · Ghana"},
99
+ {"imageCss": "flag-icon flag-icon-tg rectangle size-md", "value": "ee", "text": "Ewe · Togo"},
100
+ {"imageCss": "flag-icon flag-icon-fo rectangle size-md", "value": "fo", "text": "Faroese · Faroe Islands"},
101
+ {"imageCss": "flag-icon flag-icon-ph rectangle size-md", "value": "tl", "text": "Filipino · Philippines"},
102
+ {"imageCss": "flag-icon flag-icon-fi rectangle size-md", "value": "fi", "text": "Finnish · Finland"},
103
+ {"imageCss": "flag-icon flag-icon-fr rectangle size-md", "value": "fr", "text": "French · French"},
104
+ {"imageCss": "flag-icon flag-icon-de rectangle size-md", "value": "fy", "text": "Frisian · Germany"},
105
+ {"imageCss": "flag-icon flag-icon-gh rectangle size-md", "value": "gaa", "text": "Ga · Ghana"},
106
+ {"imageCss": "flag-icon flag-icon-es rectangle size-md", "value": "gl", "text": "Galician · Spain"},
107
+ {"imageCss": "flag-icon flag-icon-ge rectangle size-md", "value": "ka", "text": "Georgian · Georgia"},
108
+ {"imageCss": "flag-icon flag-icon-de rectangle size-md", "value": "de", "text": "German · Germany"},
109
+ {"imageCss": "flag-icon flag-icon-gr rectangle size-md", "value": "el", "text": "Greek · Greece"},
110
+ {"imageCss": "flag-icon flag-icon-in rectangle size-md", "value": "gn", "text": "Guarani · India"},
111
+ {"imageCss": "flag-icon flag-icon-za rectangle size-md", "value": "gu", "text": "Gujarati · South Africa"},
112
+ {"imageCss": "flag-icon flag-icon-ht rectangle size-md", "value": "ht", "text": "Haitian Creole · Haiti"},
113
+ {"imageCss": "flag-icon flag-icon-ng rectangle size-md", "value": "ha", "text": "Hausa · Nigeria "},
114
+ {"imageCss": "flag-icon flag-icon-us rectangle size-md", "value": "haw", "text": "Hawaiian · United States"},
115
+ {"imageCss": "flag-icon flag-icon-il rectangle size-md", "value": "iw", "text": "Hebrew · Israel"},
116
+ {"imageCss": "flag-icon flag-icon-in rectangle size-md", "value": "hi", "text": "Hindi · India"},
117
+ {"imageCss": "flag-icon flag-icon-hu rectangle size-md", "value": "hu", "text": "Hungarian · Hungary"},
118
+ {"imageCss": "flag-icon flag-icon-is rectangle size-md", "value": "is", "text": "Icelandic · Iceland"},
119
+ {"imageCss": "flag-icon flag-icon-ng rectangle size-md", "value": "ig", "text": "Igbo · Nigeria"},
120
+ {"imageCss": "flag-icon flag-icon-id rectangle size-md", "value": "id", "text": "Indonesian · Indonesia"},
121
+ {"imageCss": "flag-icon flag-icon-ie rectangle size-md", "value": "ga", "text": "Irish · Ireland"},
122
+ {"imageCss": "flag-icon flag-icon-it rectangle size-md", "value": "it", "text": "Italian · Italy"},
123
+ {"imageCss": "flag-icon flag-icon-jp rectangle size-md", "value": "ja", "text": "Japanese · Japan"},
124
+ {"imageCss": "flag-icon flag-icon-id rectangle size-md", "value": "jw", "text": "Javanese · Indonesia"},
125
+ {"imageCss": "flag-icon flag-icon-in rectangle size-md", "value": "kn", "text": "Kannada · India"},
126
+ {"imageCss": "flag-icon flag-icon-kz rectangle size-md", "value": "kk", "text": "Kazakh · Kazakhstan"},
127
+ {"imageCss": "flag-icon flag-icon-rw rectangle size-md", "value": "rw", "text": "Kinyarwanda · Rwanda"},
128
+ {"imageCss": "flag-icon flag-icon-bi rectangle size-md", "value": "rn", "text": "Kirundi · Burundi"},
129
+ {"imageCss": "flag-icon flag-icon-cd rectangle size-md", "value": "kg", "text": "Kongo · Democratic Republic of the Congo"},
130
+ {"imageCss": "flag-icon flag-icon-kp rectangle size-md", "value": "ko", "text": "Korean · North Korea"},
131
+ {"imageCss": "flag-icon flag-icon-kr rectangle size-md", "value": "ko", "text": "Korean · South Korea"},
132
+ {"imageCss": "flag-icon flag-icon-sl rectangle size-md", "value": "kri", "text": "Krio · Sierra Leone"},
133
+ {"imageCss": "flag-icon flag-icon-tr rectangle size-md", "value": "ku", "text": "Kurdish · Turkey"},
134
+ {"imageCss": "flag-icon flag-icon-kg rectangle size-md", "value": "ky", "text": "Kyrgyz · Kyrgyzstan"},
135
+ {"imageCss": "flag-icon flag-icon-la rectangle size-md", "value": "lo", "text": "Laothian · Laos"},
136
+ {"imageCss": "flag-icon flag-icon-lv rectangle size-md", "value": "lv", "text": "Latvian · Latvia"},
137
+ {"imageCss": "flag-icon flag-icon-cd rectangle size-md", "value": "ln", "text": "Lingala · Democratic Republic of the Congo"},
138
+ {"imageCss": "flag-icon flag-icon-lt rectangle size-md", "value": "lt", "text": "Lithuanian · Lithuania"},
139
+ {"imageCss": "flag-icon flag-icon-zm rectangle size-md", "value": "loz", "text": "Lozi · Zambia"},
140
+ {"imageCss": "flag-icon flag-icon-ug rectangle size-md", "value": "lg", "text": "Luganda · Uganda"},
141
+ {"imageCss": "flag-icon flag-icon-ss rectangle size-md", "value": "ach", "text": "Luo · South Sudan"},
142
+ {"imageCss": "flag-icon flag-icon-ke rectangle size-md", "value": "ach", "text": "Luo · Kenya"},
143
+ {"imageCss": "flag-icon flag-icon-mk rectangle size-md", "value": "mk", "text": "Macedonian · Republic of North Macedonia"},
144
+ {"imageCss": "flag-icon flag-icon-mg rectangle size-md", "value": "mg", "text": "Malagasy · Madagascar"},
145
+ {"imageCss": "flag-icon flag-icon-mt rectangle size-md", "value": "mg", "text": "Maltese · Malta"},
146
+ {"imageCss": "flag-icon flag-icon-my rectangle size-md", "value": "ms", "text": "Malay · Malaysia"},
147
+ {"imageCss": "flag-icon flag-icon-in rectangle size-md", "value": "ml", "text": "Malayalam · India"},
148
+ {"imageCss": "flag-icon flag-icon-mt rectangle size-md", "value": "mt", "text": "Maltese · Malta"},
149
+ {"imageCss": "flag-icon flag-icon-nz rectangle size-md", "value": "mi", "text": "Maori · New Zealand"},
150
+ {"imageCss": "flag-icon flag-icon-in rectangle size-md", "value": "mr", "text": "Marathi · India"},
151
+ {"imageCss": "flag-icon flag-icon-mu rectangle size-md", "value": "mfe", "text": "Mauritian Creole · Mauritius"},
152
+ {"imageCss": "flag-icon flag-icon-md rectangle size-md", "value": "mo", "text": "Moldavian · Moldova"},
153
+ {"imageCss": "flag-icon flag-icon-mn rectangle size-md", "value": "mn", "text": "Mongolian · Mongolia"},
154
+ {"imageCss": "flag-icon flag-icon-me rectangle size-md", "value": "sr-ME", "text": "Montenegrin · Montenegro"},
155
+ {"imageCss": "flag-icon flag-icon-np rectangle size-md", "value": "ne", "text": "Nepali · Nepal"},
156
+ {"imageCss": "flag-icon flag-icon-ng rectangle size-md", "value": "pcm", "text": "Nigerian Pidgin · Nigeria"},
157
+ {"imageCss": "flag-icon flag-icon-za rectangle size-md", "value": "nso", "text": "Northern Sotho · South Africa"},
158
+ {"imageCss": "flag-icon flag-icon-no rectangle size-md", "value": "no", "text": "Norwegian · Norway"},
159
+ {"imageCss": "flag-icon flag-icon-no rectangle size-md", "value": "nn", "text": "Norwegian · Nynorsk"},
160
+ {"imageCss": "flag-icon flag-icon-es rectangle size-md", "value": "oc", "text": "Occitan · Spain"},
161
+ {"imageCss": "flag-icon flag-icon-in rectangle size-md", "value": "or", "text": "Oriya · India"},
162
+ {"imageCss": "flag-icon flag-icon-et rectangle size-md", "value": "om", "text": "Oromo · Ethiopia"},
163
+ {"imageCss": "flag-icon flag-icon-af rectangle size-md", "value": "ps", "text": "Pashto · Afghanistan"},
164
+ {"imageCss": "flag-icon flag-icon-ir rectangle size-md", "value": "fa", "text": "Persian · Iran"},
165
+ {"imageCss": "flag-icon flag-icon-pl rectangle size-md", "value": "pl", "text": "Polish · Poland"},
166
+ {"imageCss": "flag-icon flag-icon-pt rectangle size-md", "value": "pt", "text": "Portuguese · Portugal"},
167
+ {"imageCss": "flag-icon flag-icon-pt rectangle size-md", "value": "pt-BR", "text": "Portuguese · Brazil"},
168
+ {"imageCss": "flag-icon flag-icon-pt rectangle size-md", "value": "pt-PT", "text": "Portuguese · Portugal"},
169
+ {"imageCss": "flag-icon flag-icon-in rectangle size-md", "value": "pa", "text": "Punjabi · India"},
170
+ {"imageCss": "flag-icon flag-icon-bo rectangle size-md", "value": "qu", "text": "Quechua · Bolivia"},
171
+ {"imageCss": "flag-icon flag-icon-ro rectangle size-md", "value": "ro", "text": "Romanian · Romania"},
172
+ {"imageCss": "flag-icon flag-icon-ch rectangle size-md", "value": "rm", "text": "Romansh · Switzerland"},
173
+ {"imageCss": "flag-icon flag-icon-ug rectangle size-md", "value": "nyn", "text": "Runyakitara · Uganda"},
174
+ {"imageCss": "flag-icon flag-icon-ru rectangle size-md", "value": "ru", "text": "Russian · Russia"},
175
+ {"imageCss": "flag-icon flag-icon-gb rectangle size-md", "value": "gd", "text": "Scots Gaelic · United Kingdom"},
176
+ {"imageCss": "flag-icon flag-icon-rs rectangle size-md", "value": "sr", "text": "Serbian · Serbia"},
177
+ {"imageCss": "flag-icon flag-icon-hr rectangle size-md", "value": "sh", "text": "Serbo-Croatian · Croatia"},
178
+ {"imageCss": "flag-icon flag-icon-ls rectangle size-md", "value": "st", "text": "Sesotho · Lesotho"},
179
+ {"imageCss": "flag-icon flag-icon-za rectangle size-md", "value": "tn", "text": "Setswana · South Africa"},
180
+ {"imageCss": "flag-icon flag-icon-sc rectangle size-md", "value": "crs", "text": "Seychellois Creole · Seychelles"},
181
+ {"imageCss": "flag-icon flag-icon-zw rectangle size-md", "value": "sn", "text": "Shona · Zimbabwe"},
182
+ {"imageCss": "flag-icon flag-icon-in rectangle size-md", "value": "sd", "text": "Sindhi · India"},
183
+ {"imageCss": "flag-icon flag-icon-lk rectangle size-md", "value": "si", "text": "Sinhalese · Sri Lanka"},
184
+ {"imageCss": "flag-icon flag-icon-sk rectangle size-md", "value": "sk", "text": "Slovak · Slovakia"},
185
+ {"imageCss": "flag-icon flag-icon-si rectangle size-md", "value": "sl", "text": "Slovenian · Slovenia"},
186
+ {"imageCss": "flag-icon flag-icon-so rectangle size-md", "value": "so", "text": "Somali · Somalia"},
187
+ {"imageCss": "flag-icon flag-icon-es rectangle size-md", "value": "es", "text": "Spanish · Spain"},
188
+ {"imageCss": "flag-icon flag-icon-es rectangle size-md", "value": "es-419","text": "Spanish · Latin American"},
189
+ {"imageCss": "flag-icon flag-icon-sd rectangle size-md", "value": "su", "text": "Sundanese · Sudan"},
190
+ {"imageCss": "flag-icon flag-icon-tz rectangle size-md", "value": "sw", "text": "Swahili · Tanzania"},
191
+ {"imageCss": "flag-icon flag-icon-se rectangle size-md", "value": "sv", "text": "Swedish · Sweden"},
192
+ {"imageCss": "flag-icon flag-icon-tj rectangle size-md", "value": "tg", "text": "Tajik · Tajikistan"},
193
+ {"imageCss": "flag-icon flag-icon-in rectangle size-md", "value": "ta", "text": "Tamil · India"},
194
+ {"imageCss": "flag-icon flag-icon-ru rectangle size-md", "value": "tt", "text": "Tatar · Russia"},
195
+ {"imageCss": "flag-icon flag-icon-in rectangle size-md", "value": "te", "text": "Telugu · India"},
196
+ {"imageCss": "flag-icon flag-icon-th rectangle size-md", "value": "th", "text": "Thai · Thailand"},
197
+ {"imageCss": "flag-icon flag-icon-et rectangle size-md", "value": "ti", "text": "Tigrinya · Ethiopia"},
198
+ {"imageCss": "flag-icon flag-icon-to rectangle size-md", "value": "to", "text": "Tonga · Tonga"},
199
+ {"imageCss": "flag-icon flag-icon-cg rectangle size-md", "value": "lua", "text": "Tshiluba · Congo"},
200
+ {"imageCss": "flag-icon flag-icon-mw rectangle size-md", "value": "tum", "text": "Tumbuka · Malawi"},
201
+ {"imageCss": "flag-icon flag-icon-tr rectangle size-md", "value": "tr", "text": "Turkish · Turkey"},
202
+ {"imageCss": "flag-icon flag-icon-tm rectangle size-md", "value": "tk", "text": "Turkmen · Turkmenistan"},
203
+ {"imageCss": "flag-icon flag-icon-gh rectangle size-md", "value": "tw", "text": "Twi · Ghana"},
204
+ {"imageCss": "flag-icon flag-icon-cn rectangle size-md", "value": "ug", "text": "Uighur · China"},
205
+ {"imageCss": "flag-icon flag-icon-ua rectangle size-md", "value": "uk", "text": "Ukrainian · Ukraine"},
206
+ {"imageCss": "flag-icon flag-icon-pk rectangle size-md", "value": "ur", "text": "Urdu · Pakistan"},
207
+ {"imageCss": "flag-icon flag-icon-uz rectangle size-md", "value": "uz", "text": "Uzbek · Uzbekistan"},
208
+ {"imageCss": "flag-icon flag-icon-vn rectangle size-md", "value": "vi", "text": "Vietnamese · Vietnam"},
209
+ {"imageCss": "flag-icon flag-icon-gb-wls rectangle size-md", "value": "cy", "text": "Welsh · Wales"},
210
+ {"imageCss": "flag-icon flag-icon-gm rectangle size-md", "value": "wo", "text": "Wolof · Gambia"},
211
+ {"imageCss": "flag-icon flag-icon-za rectangle size-md", "value": "xh", "text": "Xhosa · South Africa"},
212
+ {"imageCss": "flag-icon flag-icon-il rectangle size-md", "value": "yi", "text": "Yiddish · Israel"},
213
+ {"imageCss": "flag-icon flag-icon-ng rectangle size-md", "value": "yo", "text": "Yoruba · Nigeria"},
214
+ {"imageCss": "flag-icon flag-icon-za rectangle size-md", "value": "zu", "text": "Zulu · South Africa"}
215
+ ]
216
+ }
217
+
218
+ {% endcapture %}
219
+ {% if production %}
220
+ {{ cache | minifyJSON }}
221
+ {% else %}
222
+ {{ cache | strip_empty_lines }}
223
+ {% endif %}
224
+ {% assign cache = nil %}
@@ -1,142 +1,111 @@
1
- ---
2
- regenerate: false
3
- exclude_from_search: true
4
- ---
5
-
6
- {% capture cache %}
7
-
8
- {% comment %}
9
- # -----------------------------------------------------------------------------
10
- # ~/assets/data/translator_languages.json
11
- # The Liquid template is used by the J1 Translator module
12
- #
13
- # Product/Info:
14
- # https://jekyll.one
15
- #
16
- # Copyright (C) 2021 Juergen Adams
17
- #
18
- # J1 Template is licensed under the MIT License.
19
- # For details, see https://jekyll.one
20
- # -----------------------------------------------------------------------------
21
- # NOTE:
22
- # Be carefull change the Liquid code. If the code is changed, check the
23
- # integrity of the JSON data created. Invalid JSON data will cause the
24
- # the J1 Translator module to fail.
25
- # -----------------------------------------------------------------------------
26
- # Test data:
27
- # {{ liquid_var | debug }}
28
- # -----------------------------------------------------------------------------
29
- {% endcomment %}
30
-
31
- {% comment %} Set config data
32
- -------------------------------------------------------------------------------- {% endcomment %}
33
- {% assign environment = site.environment %}
34
-
35
- {
36
- "googleLanguages":
37
- [
38
- { "af": { "name": "Afrikaans" }},
39
- { "sq": { "name": "Albanian" }},
40
- { "ar": { "name": "Arabic" }},
41
- { "hy": { "name": "Armenian" }},
42
- { "az": { "name": "Azerbaijani" }},
43
- { "eu": { "name": "Basque" }},
44
- { "be": { "name": "Belarusian" }},
45
- { "bn": { "name": "Bengali" }},
46
- { "bg": { "name": "Bulgarian" }},
47
- { "ca": { "name": "Catalan" }},
48
- { "zh-CN": { "name": "Chinese (Simplified)" }},
49
- { "zh-TW": { "name": "Chinese (Traditional)" }},
50
- { "hr": { "name": "Croatian" }},
51
- { "cs": { "name": "Czech" }},
52
- { "da": { "name": "Danish" }},
53
- { "nl": { "name": "Dutch" }},
54
- { "eo": { "name": "Esperanto" }},
55
- { "et": { "name": "Estonian" }},
56
- { "tl": { "name": "Filipino" }},
57
- { "fi": { "name": "Finnish" }},
58
- { "fr": { "name": "French" }},
59
- { "gl": { "name": "Galician" }},
60
- { "ka": { "name": "Georgian" }},
61
- { "de": { "name": "German" }},
62
- { "el": { "name": "Greek" }},
63
- { "gu": { "name": "Gujarati" }},
64
- { "ht": { "name": "Haitian Creole" }},
65
- { "iw": { "name": "Hebrew" }},
66
- { "hi": { "name": "Hindi" }},
67
- { "hu": { "name": "Hungarian" }},
68
- { "is": { "name": "Icelandic" }},
69
- { "id": { "name": "Indonesian" }},
70
- { "ga": { "name": "Irish" }},
71
- { "it": { "name": "Italian" }},
72
- { "ja": { "name": "Japanese" }},
73
- { "kn": { "name": "Kannada" }},
74
- { "ko": { "name": "Korean" }},
75
- { "la": { "name": "Latin" }},
76
- { "lv": { "name": "Latvian" }},
77
- { "lt": { "name": "Lithuanian" }},
78
- { "mk": { "name": "Macedonian" }},
79
- { "ms": { "name": "Malay" }},
80
- { "mt": { "name": "Maltese" }},
81
- { "no": { "name": "Norwegian" }},
82
- { "fa": { "name": "Persian" }},
83
- { "pl": { "name": "Polish" }},
84
- { "pt": { "name": "Portuguese" }},
85
- { "ro": { "name": "Romanian" }},
86
- { "ru": { "name": "Russian" }},
87
- { "sr": { "name": "Serbian" }},
88
- { "sk": { "name": "Slovak" }},
89
- { "sl": { "name": "Slovenian" }},
90
- { "es": { "name": "Spanish" }},
91
- { "sw": { "name": "Swahili" }},
92
- { "sv": { "name": "Swedish" }},
93
- { "ta": { "name": "Tamil" }},
94
- { "te": { "name": "Telugu" }},
95
- { "th": { "name": "Thai" }},
96
- { "tr": { "name": "Turkish" }},
97
- { "uk": { "name": "Ukrainian" }},
98
- { "ur": { "name": "Urdu" }},
99
- { "vi": { "name": "Vietnamese" }},
100
- { "cy": { "name": "Welsh" }},
101
- { "yi": { "name": "Yiddish" }}
102
- ],
103
-
104
- "deeplLanguages":
105
- [
106
- { "cs": { "name": "Czech" }},
107
- { "da": { "name": "Danish" }},
108
- { "de": { "name": "German" }},
109
- { "el": { "name": "Greek" }},
110
- { "es": { "name": "Spanish" }},
111
- { "en": { "name": "English" }},
112
- { "en-us": { "name": "English (American)" }},
113
- { "en-uk": { "name": "English (British)" }},
114
- { "et": { "name": "Estonian" }},
115
- { "ft": { "name": "Finnish" }},
116
- { "fr": { "name": "French" }},
117
- { "hu": { "name": "Hungarian" }},
118
- { "it": { "name": "Italian" }},
119
- { "ja": { "name": "Japanese" }},
120
- { "lv": { "name": "Latvian" }},
121
- { "lt": { "name": "Lithuanian" }},
122
- { "nl": { "name": "Dutch" }},
123
- { "af": { "name": "Polish" }},
124
- { "pt": { "name": "Portuguese" }},
125
- { "pt-pt": { "name": "Portuguese (Portugal)" }},
126
- { "pt-br": { "name": "Portuguese (Brazilian)" }},
127
- { "ro": { "name": "Romanian" }},
128
- { "ru": { "name": "Russian" }},
129
- { "sk": { "name": "Slovak" }},
130
- { "sl": { "name": "Slovenian" }},
131
- { "sv": { "name": "Swedish" }},
132
- { "zh": { "name": "Chinese" }}
133
- ]
134
- }
135
-
136
- {% endcapture %}
137
- {% if production %}
138
- {{ cache | minifyJSON }}
139
- {% else %}
140
- {{ cache | strip_empty_lines }}
141
- {% endif %}
142
- {% assign cache = nil %}
1
+ ---
2
+ regenerate: false
3
+ exclude_from_search: true
4
+ ---
5
+
6
+ {% capture cache %}
7
+
8
+ {% comment %}
9
+ # -----------------------------------------------------------------------------
10
+ # ~/assets/data/iso-639-language-codes.json
11
+ #
12
+ #
13
+ # Product/Info:
14
+ # https://jekyll.one
15
+ #
16
+ # Copyright (C) 2021 Juergen Adams
17
+ #
18
+ # J1 Template is licensed under the MIT License.
19
+ # For details, see https://jekyll.one
20
+ # -----------------------------------------------------------------------------
21
+ # NOTE:
22
+ # Be carefull change the Liquid code. If the code is changed, check the
23
+ # integrity of the JSON data created. Invalid JSON data will cause the
24
+ # the J1 Translator module to fail.
25
+ # -----------------------------------------------------------------------------
26
+ # Test data:
27
+ # {{ liquid_var | debug }}
28
+ # -----------------------------------------------------------------------------
29
+ {% endcomment %}
30
+
31
+ {% comment %} Set config data
32
+ -------------------------------------------------------------------------------- {% endcomment %}
33
+ {% assign environment = site.environment %}
34
+
35
+ {
36
+ "iso-639-languages":
37
+ [
38
+ { "af": { "name": "Afrikaans" }},
39
+ { "sq": { "name": "Albanian" }},
40
+ { "ar": { "name": "Arabic" }},
41
+ { "hy": { "name": "Armenian" }},
42
+ { "az": { "name": "Azerbaijani" }},
43
+ { "eu": { "name": "Basque" }},
44
+ { "be": { "name": "Belarusian" }},
45
+ { "bn": { "name": "Bengali" }},
46
+ { "bg": { "name": "Bulgarian" }},
47
+ { "ca": { "name": "Catalan" }},
48
+ { "zh-CN": { "name": "Chinese (Simplified)" }},
49
+ { "zh-TW": { "name": "Chinese (Traditional)" }},
50
+ { "hr": { "name": "Croatian" }},
51
+ { "cs": { "name": "Czech" }},
52
+ { "da": { "name": "Danish" }},
53
+ { "nl": { "name": "Dutch" }},
54
+ { "eo": { "name": "Esperanto" }},
55
+ { "et": { "name": "Estonian" }},
56
+ { "tl": { "name": "Filipino" }},
57
+ { "fi": { "name": "Finnish" }},
58
+ { "fr": { "name": "French" }},
59
+ { "gl": { "name": "Galician" }},
60
+ { "ka": { "name": "Georgian" }},
61
+ { "de": { "name": "German" }},
62
+ { "el": { "name": "Greek" }},
63
+ { "gu": { "name": "Gujarati" }},
64
+ { "ht": { "name": "Haitian Creole" }},
65
+ { "iw": { "name": "Hebrew" }},
66
+ { "hi": { "name": "Hindi" }},
67
+ { "hu": { "name": "Hungarian" }},
68
+ { "is": { "name": "Icelandic" }},
69
+ { "id": { "name": "Indonesian" }},
70
+ { "ga": { "name": "Irish" }},
71
+ { "it": { "name": "Italian" }},
72
+ { "ja": { "name": "Japanese" }},
73
+ { "kn": { "name": "Kannada" }},
74
+ { "ko": { "name": "Korean" }},
75
+ { "la": { "name": "Latin" }},
76
+ { "lv": { "name": "Latvian" }},
77
+ { "lt": { "name": "Lithuanian" }},
78
+ { "mk": { "name": "Macedonian" }},
79
+ { "ms": { "name": "Malay" }},
80
+ { "mt": { "name": "Maltese" }},
81
+ { "no": { "name": "Norwegian" }},
82
+ { "fa": { "name": "Persian" }},
83
+ { "pl": { "name": "Polish" }},
84
+ { "pt": { "name": "Portuguese" }},
85
+ { "ro": { "name": "Romanian" }},
86
+ { "ru": { "name": "Russian" }},
87
+ { "sr": { "name": "Serbian" }},
88
+ { "sk": { "name": "Slovak" }},
89
+ { "sl": { "name": "Slovenian" }},
90
+ { "es": { "name": "Spanish" }},
91
+ { "sw": { "name": "Swahili" }},
92
+ { "sv": { "name": "Swedish" }},
93
+ { "ta": { "name": "Tamil" }},
94
+ { "te": { "name": "Telugu" }},
95
+ { "th": { "name": "Thai" }},
96
+ { "tr": { "name": "Turkish" }},
97
+ { "uk": { "name": "Ukrainian" }},
98
+ { "ur": { "name": "Urdu" }},
99
+ { "vi": { "name": "Vietnamese" }},
100
+ { "cy": { "name": "Welsh" }},
101
+ { "yi": { "name": "Yiddish" }}
102
+ ]
103
+ }
104
+
105
+ {% endcapture %}
106
+ {% if production %}
107
+ {{ cache | minifyJSON }}
108
+ {% else %}
109
+ {{ cache | strip_empty_lines }}
110
+ {% endif %}
111
+ {% assign cache = nil %}