-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
calculator.html
469 lines (442 loc) · 23.3 KB
/
calculator.html
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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style id="antiClickjack">
body {
display:none !important;
}
</style>
<script type="text/javascript">
if (self === top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
top.location = self.location;
}
</script>
<meta name="description" content="locize - Bridging the gap between translation and development. With locize we remove the pain in the translation process. No more delays in shipping your software because of missing translations. Translator could keep up with changes from day one. The continuous localization process keeps up with your demanding business. Stop waiting - start localizing. The translation management system created by the creators of i18next. Designed for every type of i18n framework.">
<meta property="og:title" content="locize - continuous localization as a service">
<meta property="og:description" content="locize - Bridging the gap between translation and development. With locize we remove the pain in the translation process. No more delays in shipping your software because of missing translations. Translator could keep up with changes from day one. The continuous localization process keeps up with your demanding business. Stop waiting - start localizing.">
<meta name="twitter:title" content="locize - continuous localization as a service">
<meta name="twitter:description" content="locize - Bridging the gap between translation and development. With locize we remove the pain in the translation process. No more delays in shipping your software because of missing translations. Translator could keep up with changes from day one. The continuous localization process keeps up with your demanding business. Stop waiting - start localizing.">
<meta name="author" content="inweso GmbH">
<meta name="copyright" content="inweso GmbH">
<meta name="keywords" content="localization,internationalization,localize,translate,locize,l10n,i18n,javascript,nodejs,localization as a service,saas translation,saas localization,laas,continuous localization,DevOps,process,free,website localization,service,software,web app,web,mobile,desktop,game,translation management,online,automate,process of localization,localization process,translation service,localization service,translation software,landing page,javascript localize,localization tool,localizing a website,localization solution,cloud localization,cloud translation,serverless,cloud,cdn,react,react.js,reactjs,react-i18next,next,next.js,nextjs,next-i18next,svelte,svelte-i18n,svelte-i18next,angular,vue,vue-js,jquery,nodejs,i18next,json,api,react-native,localization api,translation api,app localization services,localization management platform,localization platform,professional translation and localization services,website translation management,app localization service,online translation management,i18next translation management,i18next translation,manage translations,manage translation files">
<meta property="og:type" content="website">
<meta property="og:url" content="https://locize.com">
<meta property="og:site_name" content="locize - continuous localization as a service">
<meta property="og:locale" content="en">
<meta property="og:image" content="img/locize_color.svg">
<meta name="twitter:card" content="summary">
<meta name="twitter:creator" content="@locize">
<meta name="slack-app-id" content="A71NM84Q6">
<link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="lib/fontawesome/css/fontawesome.min.css">
<link rel="stylesheet" href="lib/fontawesome/css/brands.min.css">
<link rel="stylesheet" href="lib/fontawesome/css/solid.min.css">
<link rel="stylesheet" href="lib/fontawesome/css/regular.min.css">
<link rel="stylesheet" href="/lib/simple-line-icons/css/simple-line-icons.css">
<link rel="stylesheet" href="/lib/device-mockups/device-mockups.min.css">
<link href="/css/main.min.css" rel="stylesheet">
<!--if lt IE 9
script(src='https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js')
script(src='https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js')
-->
<link href="//cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" rel="stylesheet" type="text/css">
<style>
.pricing-slider {
width: 400px;
margin-left: 10px;
}
.pricing-input {
width: 80px;
margin-left: 10px;
}
.pricing-fromto {
width: 80px;
margin: 0 10px;
}
.pricing-row {
display: flex;
align-items: center;
}
.pricing-subResult {
display: inline-block;
margin-left: 30px;
}
.pricing-label {
display: inline-block;
width: 150px;
margin-right: 10px;
}
.pricing-results {
margin-top: 40px;
}
.pricing-resultTotal {
font-weight: 700;
}
.pricing-sets {
margin: 0 0 40px 0;
}
</style>
<title>locize - price calculator</title>
</head>
<body id="page-top">
<nav class="navbar navbar-default navbar-fixed-top affix" id="mainNav" i18next-options="{"ns": "common"}">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"><span class="sr-only">Toggle navigation</span><i class="fa-solid fa-bars"></i></button><a class="navbar-brand" href="/"></a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown" id="featuresd"><a class="dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Features<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="/#features">Characteristics</a></li>
<li><a href="/#process">What is the software localization process?</a></li>
<li><a href="/#platform">What can our localization platform do?</a></li>
<li><a href="/how-it-works.html">How it works</a></li>
<li><a href="/for-your-team.html">For your team</a></li>
</ul>
</li>
<li><a href="/pricing.html">Pricing</a></li>
<li><a href="/customers.html">Success Stories</a></li>
<li class="dropdown" id="featuresd"><a class="dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">More<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="https://docs.locize.com/">Documentation</a></li>
<li><a href="/services.html">Additional services</a></li>
<li> <a href="/blog/">Blog</a></li>
<li><a class="closeOnClick" href="/#contact">Contact</a></li>
</ul>
</li>
<li><a href="https://www.locize.app/login" target="_blank">Login<i class="fa-solid fa-lock" aria-hidden="true" style="margin-left: 5px;"></i></a></li>
<li><a class="btn btn-outline btn-xl" href="https://www.locize.app/register" style="background-color: #4caf50; color: white; border: none;">Start your free trial</a></li>
</ul>
</div>
</div>
</nav>
<div style="margin-top: 50px;">
<section class="section-tertiary">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<div class="section-heading">
<h2>Price Calculator</h2>
<hr>
</div>
</div>
</div>
</div>
</section>
<section class="section-gray" style="padding: 0;">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2" style="position: relative;">
<div class="legal" style="background-color: #fff; padding: 20px; border: solid 1px #ccc; position: relative; top: -100px; width: 100%; border-radius: 4px;">
<div class="pricing-table">
<div class="pricing-sets" id="sets"></div>
<div>
<div class="pricing-row"><span class="pricing-label">words</span><span translated="">0</span>
<input class="pricing-slider" id="words" translated="" type="range" min="0" max="900000" value="9000" step="1"><span class="pricing-fromto" translated="">900000</span>
<input class="pricing-input" id="words_input" type="number">
</div>
<div class="pricing-row"><span class="pricing-label">modifications</span><span translated="">0</span>
<input class="pricing-slider" id="modifications" translated="" type="range" min="0" max="20000" value="400" step="1"><span class="pricing-fromto" translated="">20000</span>
<input class="pricing-input" id="modifications_input" type="number">
</div>
<div class="pricing-row"><span class="pricing-label">downloads</span><span translated="">0</span>
<input class="pricing-slider" id="downloads" translated="" type="range" min="0" max="10000000" value="40000" step="1"><span class="pricing-fromto" translated="">10000000</span>
<input class="pricing-input" id="downloads_input" type="number">
</div>
</div>
<div class="pricing-results">
<div><span class="pricing-label">subscription</span><span id="resultSubscription" translated=""></span></div>
<div><span class="pricing-label">words</span><span id="resultWords" translated=""></span></div>
<div><span class="pricing-label">modifications</span><span id="resultModifications" translated=""></span></div>
<div><span class="pricing-label">downloads</span><span id="resultDownloads" translated=""></span></div>
<div><span class="pricing-label"><strong>total</strong></span><span class="pricing-resultTotal" id="resultTotal" translated=""></span>
<div><small style="font-size: 12px;">prices excl. VAT | billed on a recurring monthly basis</small></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<script>
var prices = {
subscription: 5,
words: [
{ next: 10000, price: 0.004 },
{ next: 20000, price: 0.003 },
{ next: 20000, price: 0.002 },
{ next: 200000, price: 0.001 },
{ price: 0.0005 }
],
downloads: [
{ next: 500000, price: 0.0001 },
{ next: 1000000, price: 0.000075 },
{ price: 0.00005 }
],
modifications: [
{ next: 1000, price: 0.02 },
{ next: 2000, price: 0.015 },
{ next: 2000, price: 0.01 },
{ next: 20000, price: 0.005 },
{ price: 0.003 }
],
auditEntries: [
{ price: 0.02 }
]
};
var setData = [
{ name: 'small', words: 2000, downloads: 10000, modifications: 100 },
{ name: 'medium', words: 10000, downloads: 50000, modifications: 200 },
{ name: 'large', words: 37000, downloads: 1000000, modifications: 500 },
// { name: 'xlarge', words: 75000, downloads: 500000, modifications: 750 },
];
// elements
var selWord = document.getElementById('words');
var resWord = document.getElementById('resultWords');
var wordsInput = document.getElementById('words_input');
var selDownload = document.getElementById('downloads');
var resDownload = document.getElementById('resultDownloads');
var downloadsInput = document.getElementById('downloads_input');
var selModification = document.getElementById('modifications');
var resModification = document.getElementById('resultModifications');
var modificationsInput = document.getElementById('modifications_input');
var resSubscription = document.getElementById('resultSubscription');
var resTotal = document.getElementById('resultTotal');
var sets = document.getElementById('sets');
// buttons with presets
function setValues(data) {
selWord.value = data.words;
selDownload.value = data.downloads;
selModification.value = data.modifications;
render(calculate());
};
setData.forEach(function(d) {
var btn = document.createElement('button');
btn.innerHTML = d.name;
btn.setAttribute('class', 'btn btn-signup');
btn.setAttribute('style', 'margin-right: 20px');
btn.addEventListener('click', function(e) {
setValues(d);
});
sets.appendChild(btn);
});
function calcOne(name, amount) {
var ret = 0;
var rest = amount;
var itemPrices = prices[name];
itemPrices.forEach(function(p) {
if (rest <= 0) return;
var newRest = p.next ? rest - p.next : -1;
var charge = newRest >= 0 ? p.next : rest;
ret = ret + (charge * p.price);
rest = newRest;
});
return ret;
}
function calculate() {
if (selWord.value !== wordsInput.value) wordsInput.value = selWord.value
if (selDownload.value !== downloadsInput.value) downloadsInput.value = selDownload.value
if (selModification.value !== modificationsInput.value) modificationsInput.value = selModification.value
var costWords = calcOne('words', selWord.value);
var costDownloads = calcOne('downloads', selDownload.value);
var costModifications = calcOne('modifications', selModification.value);
return {
words: selWord.value,
costWords: costWords,
downloads: selDownload.value,
costDownloads: costDownloads,
modifications: selModification.value,
costModifications: costModifications
}
}
function render(costs) {
resWord.innerHTML = costs.costWords.toFixed(2) + '$ (' + costs.words + ')';
resDownload.innerHTML = costs.costDownloads.toFixed(2) + '$ (' + costs.downloads + ')';
resModification.innerHTML = costs.costModifications.toFixed(2) + '$ (' + costs.modifications + ')';
resSubscription.innerHTML = prices.subscription.toFixed(2) + '$ (' + 1 + ')';
resTotal.innerHTML = (costs.costModifications + costs.costWords + costs.costDownloads + prices.subscription).toFixed(2) + '$';
}
selWord.addEventListener('change', function(e) { render(calculate()); });
selDownload.addEventListener('change', function(e) { render(calculate()); });
selModification.addEventListener('change', function(e) { render(calculate()); });
wordsInput.addEventListener('change', function(e) { selWord.value = wordsInput.value; render(calculate()); });
downloadsInput.addEventListener('change', function(e) { selDownload.value = downloadsInput.value; render(calculate()); });
modificationsInput.addEventListener('change', function(e) { selModification.value = modificationsInput.value; render(calculate()); });
render(calculate());
</script>
</div>
<footer i18next-options="{"ns": "common"}">
<div class="container">
<div class="row">
<div class="col-md-4"><img src="/img/locize_color.svg" style="max-width: 120px; margin-left: -5px;" alt="locize logo" loading="lazy">
<p><a href="https://tg.chregister.ch/cr-portal/auszug/auszug.xhtml?uid=CHE-412.131.272" target="_blank" style="color: #ffffff4d;" rel="nofollow">inweso GmbH</a></p>
<p>Switzerland<span style="color: white; font-size: 20px; position: relative; top: 3px; left: 5px;">🇨🇭</span></p>
<ul class="list-unstyled">
<li><a href="mailto:support@locize.com">support@locize.com</a></li>
</ul>
</div>
<div class="col-md-4">
<ul class="list-unstyled">
<li><a href="https://docs.locize.com">Technical Documentation</a></li>
<li><a href="https://docs.locize.com/integration/api">API</a></li>
<li><a href="/services.html">Services</a></li>
<li><a href="/pricing.html">Pricing</a></li>
<li><a href="/blog/">Blog</a></li>
</ul>
</div>
<div class="col-md-4">
<ul class="list-unstyled">
<li>
<ul class="list-inline list-social">
<li class="social-twitter"><a href="https://x.com/locize" target="_blank"><i class="fa-brands fa-x-twitter"></i></a></li>
<li class="social-facebook"><a href="https://www.facebook.com/locize" target="_blank"><i class="fa-brands fa-facebook"></i></a></li>
<li class="social-youtube"><a href="https://www.youtube.com/channel/UCPYQjBbbXojUcB8qjeIB3uA" target="_blank"><i class="fa-brands fa-youtube"></i></a></li>
</ul>
</li>
<li><a href="/privacy.html">Privacy</a></li>
<li><a href="/terms.html">Terms</a></li>
<li><a href="/security.html">Security</a></li>
</ul>
</div>
</div>
<div class="text-center footer-copyright">
<p><span class="translated">© 2024 </span><span>inweso GmbH. All Rights Reserved.</span></p>
</div>
</div>
</footer>
<div class="modalify-modal" id="modalify-modal">
<div class="modal-header">
<button class="close modalify-close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div><img class="modal-content" id="img-in-modal" loading="lazy">
<div id="caption-in-modal"></div>
</div>
<script>window.bindAffix = false;</script>
<script src="/lib/jquery/jquery.min.js"></script>
<script src="/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="//cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
<script src="/js/main.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var modal = document.getElementById("modalify-modal");
// Get the image and insert it inside the modal - use its "alt" text as a caption
var imgs = document.getElementsByClassName("modalify");
var modalImg = document.getElementById("img-in-modal");
var captionText = document.getElementById("caption-in-modal");
for (var i = 0; i < imgs.length; i++) {
var img = imgs[i];
img.onclick = function(){
modal.style.display = "block";
modalImg.src = this.getAttribute('full');
if (this.alt) captionText.innerHTML = this.alt;
}
}
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("modalify-close")[0];
// When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal.style.display = "none";
};
modal.onclick = function() {
modal.style.display = "none";
};
});
</script>
<script src="//cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
<script>
function enableCookies() {
var e = document.createElement("script");
e.type = "text/javascript";
e.async = true;
e.src = "https://www.googletagmanager.com/gtag/js?id=G-X50E21BGKG";
var a = document.getElementsByTagName("script")[0];
a.parentNode.insertBefore(e, a);
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-X50E21BGKG', { 'anonymize_ip': true });
//- gtag('config', 'UA-78143856-1', { 'anonymize_ip': true });
if (typeof window.enableCookiesHook === 'function') window.enableCookiesHook();
}
function disableCookies() {
var cookies = document.cookie.split(";");
for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i];
var eqPos = cookie.indexOf("=");
var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
}
if (typeof window.disableCookiesHook === 'function') window.disableCookiesHook();
}
window.cookieconsent.initialise({
palette: {
popup: {
background: "#2196f3",
text: "#ffffff"
},
button: {
background: "#1976d2",
text: "#ffffff"
}
},
theme: "edgeless",
type: "opt-in",
content: {
message: "This website uses cookies to ensure you get the best experience on our website.",
allow: "Accept",
dismiss: "Decline",
link: "learn",
href: "https://locize.com/privacy.html"
},
elements: {
deny: '<a style="font-weight: 100; color: #ffffffa8; font-size: smaller;" aria-label="deny cookies" role="button" tabindex="0" class="cc-btn cc-deny">Decline</a>'
},
onInitialise: function (status) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
// enable cookies
enableCookies();
}
if (type == 'opt-out' && !didConsent) {
// disable cookies
disableCookies();
}
},
onStatusChange: function(status, chosenBefore) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
// enable cookies
enableCookies();
}
if (type == 'opt-out' && !didConsent) {
// disable cookies
disableCookies();
}
},
onRevokeChoice: function() {
var type = this.options.type;
if (type == 'opt-in') {
// disable cookies
disableCookies();
}
if (type == 'opt-out') {
// enable cookies
enableCookies();
}
}
});
</script>
</body>
</html>