-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
354 lines (351 loc) · 19.6 KB
/
index.html
File metadata and controls
354 lines (351 loc) · 19.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Automatically translate and localize your Chrome and Firefox extensions to reach a global audience. Increase usage by up to 150% with internationalization (i18n).">
<meta name="keywords" content="localization, translation, internationalization, i18n, chrome extensions, firefox extensions, automatic i18n">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<title>Browser Extension Translator | Localize Your Extensions</title>
<style>
.drop-cap {
font-size: 3rem;
float: left;
margin-right: 0.5rem;
line-height: 0.8;
border: 1px solid black;
padding: 3px 6px;
}
.container-fluid {
max-width: 1200px;
padding-left: 30px;
padding-right: 30px;
}
.card.active {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
border-color: #007bff;
}
.locale-list {
max-height: 200px;
overflow-y: auto;
}
.locale-list .form-check {
width: 33.33%;
float: left;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Xtension Localizer</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<!-- <a class="nav-link" href="#">About</a> -->
</li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid mt-5">
<div class="row">
<div class="col-md-6 pr-md-5">
<h1>Automatically translate browser extensions</h1>
<p class="mt-5"><span class="drop-cap bg-warning">17.9%</span> of internet users are fluent in English. For context, English is the most popular language in the world followed by Chinese at 14.3%. This highlights the importance of i18n to reaching a global audience.</p>
<p class="mt-4"><span class="drop-cap bg-danger text-white">9%</span> of chrome extensions are available in more than one language, based on data from <a href="https://chrome-stats.com/extension-stats">chrome-stats.com</a>. This underscores the difficulty of internationalizing a browser extension</p>
<p class="mt-4 mb-4">This tool works for all addons that follow the <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions">WebExtensions spec</a>, including Chrome extensions, Firefox addons, Edge addons and Opera addons.</p>
<p class="mt-4 mb-4">For information on how to internationalize your extension, see the <a href="https://developer.chrome.com/docs/extensions/reference/api/i18n">Chrome i18n documentation</a>.</p>
</div>
<div class="col-md-6 pl-md-5">
<div class="card mb-4 active" id="uploadCard">
<div class="card-body">
<h5 class="card-title">1. Upload Extension</h5>
<p class="card-text">The zip file should include a manifest.json file in its root directory. If the manifest.json file specifies a default_locale, it would be used for translation.</p>
<div class="text-center">
<input type="file" id="uploadZip" accept=".zip" style="display: none;">
<button class="btn btn-primary" id="uploadBtn">Upload extension .zip</button>
</div>
<p class="text-center mt-2 d-none">OR</p>
<div class="input-group mb-3 mt-3 d-none">
<input type="text" id="extensionUrl" class="form-control" placeholder="Enter Chrome extension URL">
<div class="input-group-append">
<button class="btn btn-primary" type="button" id="fetchExtensionBtn">Fetch extension</button>
</div>
</div>
<div id="uploadMessage" class="mt-3"></div>
</div>
</div>
<div class="card mb-4" id="translateCard">
<div class="card-body">
<h5 class="card-title">2. Translate</h5>
<p class="card-text">Translate extension to any of the 52 supported languages on the Chrome Webstore by <a href="#" id="selectLocalesLink">selecting target locales</a>.</p>
<div id="localesList" class="locale-list bg-light border pl-3 pr-3 ml-n3 mr-n3" style="display: none;">
<a id="deselectAllBtn" class="mt-2 d-block">Deselect All</a>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="ar" id="locale-ar" checked>
<label class="form-check-label" for="locale-ar">Arabic</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="am" id="locale-am" checked>
<label class="form-check-label" for="locale-am">Amharic</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="bg" id="locale-bg" checked>
<label class="form-check-label" for="locale-bg">Bulgarian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="bn" id="locale-bn" checked>
<label class="form-check-label" for="locale-bn">Bengali</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="ca" id="locale-ca" checked>
<label class="form-check-label" for="locale-ca">Catalan</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="cs" id="locale-cs" checked>
<label class="form-check-label" for="locale-cs">Czech</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="da" id="locale-da" checked>
<label class="form-check-label" for="locale-da">Danish</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="de" id="locale-de" checked>
<label class="form-check-label" for="locale-de">German</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="el" id="locale-el" checked>
<label class="form-check-label" for="locale-el">Greek</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="en" id="locale-en" checked>
<label class="form-check-label" for="locale-en">English</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="en_AU" id="locale-en_AU" checked>
<label class="form-check-label" for="locale-en_AU">English (Australia)</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="en_GB" id="locale-en_GB" checked>
<label class="form-check-label" for="locale-en_GB">English (GB)</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="en_US" id="locale-en_US" checked>
<label class="form-check-label" for="locale-en_US">English (USA)</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="es" id="locale-es" checked>
<label class="form-check-label" for="locale-es">Spanish</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="es_419" id="locale-es_419" checked>
<label class="form-check-label" for="locale-es_419">Spanish (LatAm)</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="et" id="locale-et" checked>
<label class="form-check-label" for="locale-et">Estonian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="fa" id="locale-fa" checked>
<label class="form-check-label" for="locale-fa">Persian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="fi" id="locale-fi" checked>
<label class="form-check-label" for="locale-fi">Finnish</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="fil" id="locale-fil" checked>
<label class="form-check-label" for="locale-fil">Filipino</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="fr" id="locale-fr" checked>
<label class="form-check-label" for="locale-fr">French</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="gu" id="locale-gu" checked>
<label class="form-check-label" for="locale-gu">Gujarati</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="he" id="locale-he" checked>
<label class="form-check-label" for="locale-he">Hebrew</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="hi" id="locale-hi" checked>
<label class="form-check-label" for="locale-hi">Hindi</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="hr" id="locale-hr" checked>
<label class="form-check-label" for="locale-hr">Croatian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="hu" id="locale-hu" checked>
<label class="form-check-label" for="locale-hu">Hungarian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="id" id="locale-id" checked>
<label class="form-check-label" for="locale-id">Indonesian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="it" id="locale-it" checked>
<label class="form-check-label" for="locale-it">Italian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="ja" id="locale-ja" checked>
<label class="form-check-label" for="locale-ja">Japanese</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="kn" id="locale-kn" checked>
<label class="form-check-label" for="locale-kn">Kannada</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="ko" id="locale-ko" checked>
<label class="form-check-label" for="locale-ko">Korean</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="lt" id="locale-lt" checked>
<label class="form-check-label" for="locale-lt">Lithuanian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="lv" id="locale-lv" checked>
<label class="form-check-label" for="locale-lv">Latvian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="ml" id="locale-ml" checked>
<label class="form-check-label" for="locale-ml">Malayalam</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="mr" id="locale-mr" checked>
<label class="form-check-label" for="locale-mr">Marathi</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="ms" id="locale-ms" checked>
<label class="form-check-label" for="locale-ms">Malay</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="nl" id="locale-nl" checked>
<label class="form-check-label" for="locale-nl">Dutch</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="no" id="locale-no" checked>
<label class="form-check-label" for="locale-no">Norwegian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="pl" id="locale-pl" checked>
<label class="form-check-label" for="locale-pl">Polish</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="pt_BR" id="locale-pt_BR" checked>
<label class="form-check-label" for="locale-pt_BR">Portuguese (Brazil)</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="pt_PT" id="locale-pt_PT" checked>
<label class="form-check-label" for="locale-pt_PT">Portuguese (Portugal)</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="ro" id="locale-ro" checked>
<label class="form-check-label" for="locale-ro">Romanian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="ru" id="locale-ru" checked>
<label class="form-check-label" for="locale-ru">Russian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="sk" id="locale-sk" checked>
<label class="form-check-label" for="locale-sk">Slovak</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="sl" id="locale-sl" checked>
<label class="form-check-label" for="locale-sl">Slovenian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="sr" id="locale-sr" checked>
<label class="form-check-label" for="locale-sr">Serbian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="sv" id="locale-sv" checked>
<label class="form-check-label" for="locale-sv">Swedish</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="sw" id="locale-sw" checked>
<label class="form-check-label" for="locale-sw">Swahili</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="ta" id="locale-ta" checked>
<label class="form-check-label" for="locale-ta">Tamil</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="te" id="locale-te" checked>
<label class="form-check-label" for="locale-te">Telugu</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="th" id="locale-th" checked>
<label class="form-check-label" for="locale-th">Thai</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="tr" id="locale-tr" checked>
<label class="form-check-label" for="locale-tr">Turkish</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="uk" id="locale-uk" checked>
<label class="form-check-label" for="locale-uk">Ukrainian</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="vi" id="locale-vi" checked>
<label class="form-check-label" for="locale-vi">Vietnamese</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="zh_CN" id="locale-zh_CN" checked>
<label class="form-check-label" for="locale-zh_CN">Chinese (China)</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="zh_TW" id="locale-zh_TW" checked>
<label class="form-check-label" for="locale-zh_TW">Chinese (Taiwan)</label>
</div>
</div>
<p id="defaultLocale" class="mt-2"></p>
<p id="selectedLocales" class="mt-2"></p>
<div id="localeNotice" class="alert alert-warning mt-2" style="display: none;"></div>
<div class="text-center">
<button id="translateBtn" class="btn btn-primary" disabled>Begin translation</button>
</div>
<div class="progress mt-3" style="display: none;">
<div id="translationProgress" class="progress-bar" role="progressbar" style="width: 0%; height: 100%" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div id="translateMessage" class="mt-3"></div>
</div>
</div>
<div class="card mb-4" id="downloadCard">
<div class="card-body">
<h5 class="card-title">3. Download</h5>
<p class="card-text">Click download to save your translated extension.</p>
<div class="text-center">
<button id="downloadBtn" class="btn btn-primary" disabled>Download</button>
</div>
<div id="downloadMessage" class="mt-3"></div>
</div>
</div>
</div>
</div>
</div>
<footer class="mt-5 py-3 bg-light text-center">
<p>© 2024 <a href="https://xtensions.net">xtensions.net</a>. All rights reserved.</p>
</footer>
<script src="./scripts/jquery-3.5.1.min.js"></script>
<script src="./scripts/popper-1.16.0.min.js"></script>
<script src="./scripts/bootstrap-4.5.2.min.js"></script>
<script src="./scripts/jszip-3.7.1.min.js"></script>
<script src="./scripts/gtag.js"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-904PCB4SK5');
</script>
<script src="./script.js"></script>
</body>
</html>