@meterbox/react 0.1.23 → 0.1.25
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.
- package/package.json +1 -1
- package/src/PricingTable.js +157 -14
- package/src/i18n.js +104 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meterbox/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "Embeddable React components for Meterbox: pricing tables, subscription preview, credit balance and usage charts. Presentational by default, with data fetched by your backend via @meterbox/node.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://meterbox.ai",
|
package/src/PricingTable.js
CHANGED
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
* supplied; invokes `onSelect(plan, billingInterval)` when a CTA is
|
|
13
13
|
* clicked so the tenant can route to their own checkout / contact form —
|
|
14
14
|
* `billingInterval` ("monthly" or "annual") is whichever the shopper had
|
|
15
|
-
* selected, ready to pass straight to `<CheckoutButton billingInterval
|
|
15
|
+
* selected, ready to pass straight to `<CheckoutButton billingInterval>`:
|
|
16
|
+
* "annual" only for a monthly plan's annual prepay; any plan billed another
|
|
17
|
+
* interval (`billing_interval`) gets "monthly", meaning its own interval.
|
|
16
18
|
*
|
|
17
19
|
* A monthly/annual toggle renders automatically when at least one plan
|
|
18
20
|
* has `annual_free_months` set (the same field the tenant configures via
|
|
@@ -21,6 +23,13 @@
|
|
|
21
23
|
* total divided back into a misleading "$X/mo" figure — a shopper who
|
|
22
24
|
* commits annually is billed once for the year, not monthly.
|
|
23
25
|
*
|
|
26
|
+
* A plan billed other than monthly (`billing_interval`: week, quarter,
|
|
27
|
+
* half_year, year) shows its monthly price with how often it's billed under
|
|
28
|
+
* it ("billed every quarter", with "usage billed every month" when its
|
|
29
|
+
* `usage_interval` bills usage more often). When any plan does, the toggle offers each
|
|
30
|
+
* interval the plans use instead (yearly plans and annual prepay together
|
|
31
|
+
* under "Annual") and shows that tab's plans.
|
|
32
|
+
*
|
|
24
33
|
* With `showUsage` (off by default), a plan with `usage` (the pricing
|
|
25
34
|
* snapshot and the customer portal's plan list carry it) also shows its
|
|
26
35
|
* included amounts, what happens past them, and its models' input and output
|
|
@@ -286,6 +295,62 @@ function FeatureInfo({ label, children }) {
|
|
|
286
295
|
);
|
|
287
296
|
}
|
|
288
297
|
|
|
298
|
+
/**
|
|
299
|
+
* How a custom dimension is priced, in the reader's language (the
|
|
300
|
+
* snapshot's `dimensions`: charge-models.js on the server): per 1,000
|
|
301
|
+
* units, a percentage of each transaction, per block, or each event's own price.
|
|
302
|
+
*/
|
|
303
|
+
function dimensionPrice(i18n, d) {
|
|
304
|
+
const { t, number, money } = i18n;
|
|
305
|
+
const usd = (n) => money(n, "USD");
|
|
306
|
+
const unit = d.unit || d.label;
|
|
307
|
+
if (d.charge_model === "percentage") {
|
|
308
|
+
const p = d.percentage;
|
|
309
|
+
const rate = (r) => `${number(r)}%`;
|
|
310
|
+
const rates = p.tiers
|
|
311
|
+
.map((tier, i) => {
|
|
312
|
+
const r = tier.flat_usd
|
|
313
|
+
? `${rate(tier.rate_pct)} + ${usd(tier.flat_usd)}`
|
|
314
|
+
: rate(tier.rate_pct);
|
|
315
|
+
const shown = i === 0 ? r : t("pricing.dim.then", { rate: r });
|
|
316
|
+
return tier.up_to == null
|
|
317
|
+
? shown
|
|
318
|
+
: t("pricing.dim.upTo", { rate: shown, amount: usd(tier.up_to) });
|
|
319
|
+
})
|
|
320
|
+
.join(", ");
|
|
321
|
+
const fee = p.fixed_fee_usd ? ` + ${usd(p.fixed_fee_usd)}` : "";
|
|
322
|
+
return [
|
|
323
|
+
t("pricing.dim.perTransaction", { rates: `${rates}${fee}` }),
|
|
324
|
+
p.min_usd != null ? t("pricing.dim.atLeast", { amount: usd(p.min_usd) }) : null,
|
|
325
|
+
p.max_usd != null ? t("pricing.dim.atMost", { amount: usd(p.max_usd) }) : null,
|
|
326
|
+
p.free_transactions ? t("pricing.dim.freeFirst", { n: number(p.free_transactions) }) : null,
|
|
327
|
+
p.free_amount ? t("pricing.dim.noRateFirst", { amount: usd(p.free_amount) }) : null,
|
|
328
|
+
]
|
|
329
|
+
.filter(Boolean)
|
|
330
|
+
.join(", ");
|
|
331
|
+
}
|
|
332
|
+
if (d.charge_model === "package") {
|
|
333
|
+
const p = d.package;
|
|
334
|
+
const price = t("pricing.dim.package", {
|
|
335
|
+
price: usd(p.price_usd),
|
|
336
|
+
size: number(p.size),
|
|
337
|
+
unit,
|
|
338
|
+
});
|
|
339
|
+
return p.free_units
|
|
340
|
+
? `${price}, ${t("pricing.dim.freeFirst", { n: number(p.free_units) })}`
|
|
341
|
+
: price;
|
|
342
|
+
}
|
|
343
|
+
if (d.charge_model === "event_price") return t("pricing.dim.eventPrice", { unit });
|
|
344
|
+
const priced = (d.tiers || []).filter((tier) => tier.per_1k > 0);
|
|
345
|
+
if (!priced.length) return t("pricing.dim.free");
|
|
346
|
+
const lowest = Math.min(...priced.map((tier) => tier.per_1k));
|
|
347
|
+
const key =
|
|
348
|
+
priced.length > 1 || priced.length < d.tiers.length
|
|
349
|
+
? "pricing.dim.fromPerThousand"
|
|
350
|
+
: "pricing.dim.perThousand";
|
|
351
|
+
return t(key, { price: usd(lowest), unit });
|
|
352
|
+
}
|
|
353
|
+
|
|
289
354
|
/** Included amounts, what happens past them, and the models' rates. */
|
|
290
355
|
function PlanUsage({ usage }) {
|
|
291
356
|
const i18n = useI18n();
|
|
@@ -299,18 +364,20 @@ function PlanUsage({ usage }) {
|
|
|
299
364
|
.filter(([n]) => n > 0)
|
|
300
365
|
.map(([n, key]) => t(key, { n: number(n, { notation: "compact" }) }));
|
|
301
366
|
const billed = overage === "billed";
|
|
367
|
+
// Models with token rates to list (a model priced only by its dimensions has none).
|
|
368
|
+
const tokenPriced = models.filter((m) =>
|
|
369
|
+
[...m.input_tiers, ...m.output_tiers].some((tier) => tier.per_1k > 0),
|
|
370
|
+
);
|
|
371
|
+
let pastLine = t(`pricing.past.${overage}`, null, "");
|
|
372
|
+
if (billed && parts.length === 0) pastLine = tokenPriced.length ? t("pricing.per1M") : "";
|
|
302
373
|
return React.createElement(
|
|
303
374
|
"div",
|
|
304
375
|
{ className: "meterbox-plan-usage", style: styles.usage },
|
|
305
376
|
parts.length > 0 &&
|
|
306
377
|
React.createElement("div", null, t("pricing.includes", { parts: parts.join(", ") })),
|
|
307
|
-
React.createElement(
|
|
308
|
-
"div",
|
|
309
|
-
{ style: { opacity: 0.75 } },
|
|
310
|
-
billed && parts.length === 0 ? t("pricing.per1M") : t(`pricing.past.${overage}`, null, ""),
|
|
311
|
-
),
|
|
378
|
+
React.createElement("div", { style: { opacity: 0.75 } }, pastLine),
|
|
312
379
|
billed
|
|
313
|
-
?
|
|
380
|
+
? tokenPriced.map((m) =>
|
|
314
381
|
React.createElement(
|
|
315
382
|
"div",
|
|
316
383
|
{ key: m.id },
|
|
@@ -334,6 +401,21 @@ function PlanUsage({ usage }) {
|
|
|
334
401
|
null,
|
|
335
402
|
t("pricing.apiCallRates", { ladder: ladderText(i18n, callTiers, 1) }),
|
|
336
403
|
),
|
|
404
|
+
// Each model's custom dimensions: a percentage, per block, per event, …
|
|
405
|
+
billed &&
|
|
406
|
+
models.flatMap((m) =>
|
|
407
|
+
(m.dimensions || []).map((d) =>
|
|
408
|
+
React.createElement(
|
|
409
|
+
"div",
|
|
410
|
+
{ key: `${m.id}:${d.name}` },
|
|
411
|
+
t("pricing.dim.line", {
|
|
412
|
+
model: m.name,
|
|
413
|
+
label: d.label,
|
|
414
|
+
price: dimensionPrice(i18n, d),
|
|
415
|
+
}),
|
|
416
|
+
),
|
|
417
|
+
),
|
|
418
|
+
),
|
|
337
419
|
);
|
|
338
420
|
}
|
|
339
421
|
|
|
@@ -364,6 +446,8 @@ function fromSnapshot(p) {
|
|
|
364
446
|
promotion: p.promotion || null,
|
|
365
447
|
stripe_price_monthly_usd: p.price ? p.price.monthly_usd : null,
|
|
366
448
|
annual_free_months: p.annual_free_months == null ? null : p.annual_free_months,
|
|
449
|
+
billing_interval: p.billing_interval || "month",
|
|
450
|
+
usage_interval: p.usage_interval || null,
|
|
367
451
|
localized_prices: p.localized_prices || [],
|
|
368
452
|
usage: p.usage || null,
|
|
369
453
|
highlight: !!p.highlight,
|
|
@@ -434,25 +518,56 @@ function PricingTable({
|
|
|
434
518
|
}
|
|
435
519
|
|
|
436
520
|
const hasAnnualOption = list.some((p) => p.annual_free_months != null);
|
|
521
|
+
// How often each plan bills (`billing_interval`; its price is per month
|
|
522
|
+
// either way). With every plan monthly, the toggle is monthly or annual
|
|
523
|
+
// prepay, as before. With plans billed other intervals, it offers each one
|
|
524
|
+
// used (yearly plans together with annual prepay) and shows that tab's plans.
|
|
525
|
+
const intervalOf = (p) => p.billing_interval || "month";
|
|
526
|
+
const TAB_OF = {
|
|
527
|
+
week: "weekly",
|
|
528
|
+
month: "monthly",
|
|
529
|
+
quarter: "quarter",
|
|
530
|
+
half_year: "half_year",
|
|
531
|
+
year: "annual",
|
|
532
|
+
};
|
|
533
|
+
const others = list.some((p) => intervalOf(p) !== "month");
|
|
534
|
+
const tabs = others
|
|
535
|
+
? ["weekly", "monthly", "quarter", "half_year", "annual"].filter((tab) =>
|
|
536
|
+
list.some(
|
|
537
|
+
(p) =>
|
|
538
|
+
TAB_OF[intervalOf(p)] === tab || (tab === "annual" && p.annual_free_months != null),
|
|
539
|
+
),
|
|
540
|
+
)
|
|
541
|
+
: hasAnnualOption
|
|
542
|
+
? ["monthly", "annual"]
|
|
543
|
+
: [];
|
|
544
|
+
const tab = tabs.includes(billingInterval) ? billingInterval : tabs[0];
|
|
545
|
+
const shown = others
|
|
546
|
+
? list.filter(
|
|
547
|
+
(p) =>
|
|
548
|
+
TAB_OF[intervalOf(p)] === tab ||
|
|
549
|
+
(tab === "annual" && intervalOf(p) === "month" && p.annual_free_months != null),
|
|
550
|
+
)
|
|
551
|
+
: list;
|
|
437
552
|
|
|
438
553
|
return React.createElement(
|
|
439
554
|
"div",
|
|
440
555
|
{ className: "meterbox-pricing-table", style: { ...styles.wrap, ...vars } },
|
|
441
|
-
|
|
556
|
+
tabs.length > 1 &&
|
|
442
557
|
React.createElement(
|
|
443
558
|
"div",
|
|
444
559
|
{ style: styles.toggle },
|
|
445
|
-
|
|
560
|
+
tabs.map((interval) =>
|
|
446
561
|
React.createElement(
|
|
447
562
|
"button",
|
|
448
563
|
{
|
|
449
564
|
key: interval,
|
|
450
565
|
type: "button",
|
|
451
566
|
style:
|
|
452
|
-
|
|
567
|
+
tab === interval
|
|
453
568
|
? { ...styles.toggleBtn, ...styles.toggleBtnActive }
|
|
454
569
|
: styles.toggleBtn,
|
|
455
|
-
"aria-pressed":
|
|
570
|
+
"aria-pressed": tab === interval,
|
|
456
571
|
onClick: () => setBillingInterval(interval),
|
|
457
572
|
},
|
|
458
573
|
t(`pricing.${interval}`),
|
|
@@ -462,7 +577,7 @@ function PricingTable({
|
|
|
462
577
|
React.createElement(
|
|
463
578
|
"div",
|
|
464
579
|
{ style: styles.grid },
|
|
465
|
-
|
|
580
|
+
shown.map((plan) => {
|
|
466
581
|
const isCurrent = plan.id === currentPlanId;
|
|
467
582
|
const isSelected = plan.id === selectedPlanId;
|
|
468
583
|
const localized = (plan.localized_prices || []).find(
|
|
@@ -475,7 +590,15 @@ function PricingTable({
|
|
|
475
590
|
// Annual only applies when THIS plan offers it — a plan without
|
|
476
591
|
// annual_free_months always shows its monthly price, even while the
|
|
477
592
|
// toggle above is set to "Annual" for its siblings.
|
|
478
|
-
const annual =
|
|
593
|
+
const annual =
|
|
594
|
+
tab === "annual" && intervalOf(plan) === "month" ? annualPriceUsd(plan) : null;
|
|
595
|
+
// A plan billed other than monthly says how often, under its monthly price.
|
|
596
|
+
const billedKey = {
|
|
597
|
+
week: "pricing.billed.week",
|
|
598
|
+
quarter: "pricing.billed.quarter",
|
|
599
|
+
half_year: "pricing.billed.half_year",
|
|
600
|
+
year: "pricing.billedAnnually",
|
|
601
|
+
}[intervalOf(plan)];
|
|
479
602
|
const link = !onSelect && !isCurrent ? ctaLink(plan, customerEmail) : null;
|
|
480
603
|
// A promotion is on the monthly USD price.
|
|
481
604
|
const promo =
|
|
@@ -513,6 +636,20 @@ function PricingTable({
|
|
|
513
636
|
{ key: "period", style: styles.perMonth },
|
|
514
637
|
annual != null ? t("pricing.billedAnnually") : t("pricing.perMonth"),
|
|
515
638
|
),
|
|
639
|
+
billedKey &&
|
|
640
|
+
React.createElement(
|
|
641
|
+
"div",
|
|
642
|
+
{ key: "billed", style: styles.perMonth },
|
|
643
|
+
// Usage billed more often than the fee says so too.
|
|
644
|
+
[
|
|
645
|
+
t(billedKey),
|
|
646
|
+
plan.usage_interval && plan.usage_interval !== intervalOf(plan)
|
|
647
|
+
? t(`pricing.usage.${plan.usage_interval}`)
|
|
648
|
+
: null,
|
|
649
|
+
]
|
|
650
|
+
.filter(Boolean)
|
|
651
|
+
.join(", "),
|
|
652
|
+
),
|
|
516
653
|
];
|
|
517
654
|
}
|
|
518
655
|
let action;
|
|
@@ -539,7 +676,13 @@ function PricingTable({
|
|
|
539
676
|
type: "button",
|
|
540
677
|
style: isCurrent ? { ...styles.cta, ...styles.ctaCurrent } : styles.cta,
|
|
541
678
|
disabled: isCurrent,
|
|
542
|
-
onClick: () =>
|
|
679
|
+
onClick: () =>
|
|
680
|
+
onSelect
|
|
681
|
+
? onSelect(
|
|
682
|
+
plan,
|
|
683
|
+
intervalOf(plan) === "month" && tab === "annual" ? "annual" : "monthly",
|
|
684
|
+
)
|
|
685
|
+
: undefined,
|
|
543
686
|
"aria-label": t(isCurrent ? "pricing.currentlyOn" : "pricing.choose", {
|
|
544
687
|
plan: plan.name || plan.id,
|
|
545
688
|
}),
|
package/src/i18n.js
CHANGED
|
@@ -30,6 +30,9 @@ const en = {
|
|
|
30
30
|
"account.plan": "Plan",
|
|
31
31
|
"account.status": "Status",
|
|
32
32
|
"account.periodEnds": "Current period ends",
|
|
33
|
+
"account.usageSoFar": "Usage so far",
|
|
34
|
+
"account.nextInvoiceAt": "Next invoice at",
|
|
35
|
+
"account.usagePaused": "Usage is paused until your latest invoice is paid.",
|
|
33
36
|
"account.endsOn": "Ends on",
|
|
34
37
|
"status.active": "active",
|
|
35
38
|
"status.trialing": "trialing",
|
|
@@ -76,7 +79,29 @@ const en = {
|
|
|
76
79
|
"pricing.choosePlan": "Choose plan",
|
|
77
80
|
"pricing.custom": "Custom",
|
|
78
81
|
"pricing.perMonth": "/ month",
|
|
82
|
+
"pricing.dim.line": "{model}, {label}: {price}",
|
|
83
|
+
"pricing.dim.perThousand": "{price} per 1,000 {unit}",
|
|
84
|
+
"pricing.dim.fromPerThousand": "from {price} per 1,000 {unit}",
|
|
85
|
+
"pricing.dim.free": "free",
|
|
86
|
+
"pricing.dim.perTransaction": "{rates} per transaction",
|
|
87
|
+
"pricing.dim.upTo": "{rate} up to {amount}",
|
|
88
|
+
"pricing.dim.then": "then {rate}",
|
|
89
|
+
"pricing.dim.atLeast": "at least {amount}",
|
|
90
|
+
"pricing.dim.atMost": "at most {amount}",
|
|
91
|
+
"pricing.dim.freeFirst": "first {n} free",
|
|
92
|
+
"pricing.dim.noRateFirst": "no rate on the first {amount}",
|
|
93
|
+
"pricing.dim.package": "{price} per {size} {unit}",
|
|
94
|
+
"pricing.dim.eventPrice": "each {unit} at its own price",
|
|
79
95
|
"pricing.billedAnnually": "billed annually",
|
|
96
|
+
"pricing.weekly": "Weekly",
|
|
97
|
+
"pricing.quarter": "Quarterly",
|
|
98
|
+
"pricing.half_year": "Every 6 months",
|
|
99
|
+
"pricing.billed.week": "billed every week",
|
|
100
|
+
"pricing.billed.quarter": "billed every quarter",
|
|
101
|
+
"pricing.billed.half_year": "billed every 6 months",
|
|
102
|
+
"pricing.usage.month": "usage billed every month",
|
|
103
|
+
"pricing.usage.quarter": "usage billed every quarter",
|
|
104
|
+
"pricing.usage.half_year": "usage billed every 6 months",
|
|
80
105
|
"pricing.trial": "{days}-day free trial",
|
|
81
106
|
"pricing.endsAfter": "For {days} days, then choose a plan",
|
|
82
107
|
"pricing.includes": "Includes {parts} a month",
|
|
@@ -85,7 +110,7 @@ const en = {
|
|
|
85
110
|
"pricing.apiCalls": "{n} API calls",
|
|
86
111
|
"pricing.per1M": "Per 1M tokens:",
|
|
87
112
|
"pricing.past.billed": "Past that, per 1M tokens:",
|
|
88
|
-
"pricing.past.blocked": "Usage stops there until next
|
|
113
|
+
"pricing.past.blocked": "Usage stops there until the next billing period.",
|
|
89
114
|
"pricing.past.upgrade": "Past that, your plan is upgraded automatically.",
|
|
90
115
|
"pricing.models": "Models: {names}",
|
|
91
116
|
"pricing.modelRates": "{model}: {input} in, {output} out",
|
|
@@ -205,6 +230,9 @@ const es = {
|
|
|
205
230
|
"account.plan": "Plan",
|
|
206
231
|
"account.status": "Estado",
|
|
207
232
|
"account.periodEnds": "El período actual termina",
|
|
233
|
+
"account.usageSoFar": "Uso hasta ahora",
|
|
234
|
+
"account.nextInvoiceAt": "Próxima factura al llegar a",
|
|
235
|
+
"account.usagePaused": "El uso está pausado hasta que se pague tu última factura.",
|
|
208
236
|
"account.endsOn": "Termina el",
|
|
209
237
|
"status.active": "activa",
|
|
210
238
|
"status.trialing": "en prueba",
|
|
@@ -251,7 +279,29 @@ const es = {
|
|
|
251
279
|
"pricing.choosePlan": "Elegir plan",
|
|
252
280
|
"pricing.custom": "Personalizado",
|
|
253
281
|
"pricing.perMonth": "/ mes",
|
|
282
|
+
"pricing.dim.line": "{model}, {label}: {price}",
|
|
283
|
+
"pricing.dim.perThousand": "{price} por cada 1.000 {unit}",
|
|
284
|
+
"pricing.dim.fromPerThousand": "desde {price} por cada 1.000 {unit}",
|
|
285
|
+
"pricing.dim.free": "gratis",
|
|
286
|
+
"pricing.dim.perTransaction": "{rates} por transacción",
|
|
287
|
+
"pricing.dim.upTo": "{rate} hasta {amount}",
|
|
288
|
+
"pricing.dim.then": "luego {rate}",
|
|
289
|
+
"pricing.dim.atLeast": "mínimo {amount}",
|
|
290
|
+
"pricing.dim.atMost": "máximo {amount}",
|
|
291
|
+
"pricing.dim.freeFirst": "los primeros {n} gratis",
|
|
292
|
+
"pricing.dim.noRateFirst": "sin tasa en los primeros {amount}",
|
|
293
|
+
"pricing.dim.package": "{price} por cada {size} {unit}",
|
|
294
|
+
"pricing.dim.eventPrice": "cada {unit} a su propio precio",
|
|
254
295
|
"pricing.billedAnnually": "facturado anualmente",
|
|
296
|
+
"pricing.weekly": "Semanal",
|
|
297
|
+
"pricing.quarter": "Trimestral",
|
|
298
|
+
"pricing.half_year": "Semestral",
|
|
299
|
+
"pricing.billed.week": "facturado cada semana",
|
|
300
|
+
"pricing.billed.quarter": "facturado cada trimestre",
|
|
301
|
+
"pricing.billed.half_year": "facturado cada 6 meses",
|
|
302
|
+
"pricing.usage.month": "uso facturado cada mes",
|
|
303
|
+
"pricing.usage.quarter": "uso facturado cada trimestre",
|
|
304
|
+
"pricing.usage.half_year": "uso facturado cada 6 meses",
|
|
255
305
|
"pricing.trial": "Prueba gratuita de {days} días",
|
|
256
306
|
"pricing.endsAfter": "Durante {days} días; luego elige un plan",
|
|
257
307
|
"pricing.includes": "Incluye {parts} al mes",
|
|
@@ -260,7 +310,7 @@ const es = {
|
|
|
260
310
|
"pricing.apiCalls": "{n} llamadas a la API",
|
|
261
311
|
"pricing.per1M": "Por 1M de tokens:",
|
|
262
312
|
"pricing.past.billed": "Después, por 1M de tokens:",
|
|
263
|
-
"pricing.past.blocked": "El uso se detiene ahí hasta el próximo
|
|
313
|
+
"pricing.past.blocked": "El uso se detiene ahí hasta el próximo periodo de facturación.",
|
|
264
314
|
"pricing.past.upgrade": "Después, tu plan se mejora automáticamente.",
|
|
265
315
|
"pricing.models": "Modelos: {names}",
|
|
266
316
|
"pricing.modelRates": "{model}: {input} entrada, {output} salida",
|
|
@@ -381,6 +431,9 @@ const fr = {
|
|
|
381
431
|
"account.plan": "Forfait",
|
|
382
432
|
"account.status": "Statut",
|
|
383
433
|
"account.periodEnds": "Fin de la période en cours",
|
|
434
|
+
"account.usageSoFar": "Utilisation à ce jour",
|
|
435
|
+
"account.nextInvoiceAt": "Prochaine facture à",
|
|
436
|
+
"account.usagePaused": "L'utilisation est suspendue jusqu'au paiement de votre dernière facture.",
|
|
384
437
|
"account.endsOn": "Se termine le",
|
|
385
438
|
"status.active": "actif",
|
|
386
439
|
"status.trialing": "en essai",
|
|
@@ -427,7 +480,29 @@ const fr = {
|
|
|
427
480
|
"pricing.choosePlan": "Choisir ce forfait",
|
|
428
481
|
"pricing.custom": "Sur mesure",
|
|
429
482
|
"pricing.perMonth": "/ mois",
|
|
483
|
+
"pricing.dim.line": "{model}, {label} : {price}",
|
|
484
|
+
"pricing.dim.perThousand": "{price} les 1 000 {unit}",
|
|
485
|
+
"pricing.dim.fromPerThousand": "à partir de {price} les 1 000 {unit}",
|
|
486
|
+
"pricing.dim.free": "gratuit",
|
|
487
|
+
"pricing.dim.perTransaction": "{rates} par transaction",
|
|
488
|
+
"pricing.dim.upTo": "{rate} jusqu'à {amount}",
|
|
489
|
+
"pricing.dim.then": "puis {rate}",
|
|
490
|
+
"pricing.dim.atLeast": "au moins {amount}",
|
|
491
|
+
"pricing.dim.atMost": "au plus {amount}",
|
|
492
|
+
"pricing.dim.freeFirst": "les {n} premiers gratuits",
|
|
493
|
+
"pricing.dim.noRateFirst": "aucun taux sur les premiers {amount}",
|
|
494
|
+
"pricing.dim.package": "{price} les {size} {unit}",
|
|
495
|
+
"pricing.dim.eventPrice": "chaque {unit} à son propre prix",
|
|
430
496
|
"pricing.billedAnnually": "facturé annuellement",
|
|
497
|
+
"pricing.weekly": "Hebdomadaire",
|
|
498
|
+
"pricing.quarter": "Trimestriel",
|
|
499
|
+
"pricing.half_year": "Semestriel",
|
|
500
|
+
"pricing.billed.week": "facturé chaque semaine",
|
|
501
|
+
"pricing.billed.quarter": "facturé chaque trimestre",
|
|
502
|
+
"pricing.billed.half_year": "facturé tous les 6 mois",
|
|
503
|
+
"pricing.usage.month": "utilisation facturée chaque mois",
|
|
504
|
+
"pricing.usage.quarter": "utilisation facturée chaque trimestre",
|
|
505
|
+
"pricing.usage.half_year": "utilisation facturée tous les 6 mois",
|
|
431
506
|
"pricing.trial": "Essai gratuit de {days} jours",
|
|
432
507
|
"pricing.endsAfter": "Pendant {days} jours, puis choisissez une offre",
|
|
433
508
|
"pricing.includes": "Inclut {parts} par mois",
|
|
@@ -436,7 +511,7 @@ const fr = {
|
|
|
436
511
|
"pricing.apiCalls": "{n} appels API",
|
|
437
512
|
"pricing.per1M": "Par million de tokens :",
|
|
438
513
|
"pricing.past.billed": "Au-delà, par million de tokens :",
|
|
439
|
-
"pricing.past.blocked": "L'utilisation s'arrête là jusqu'
|
|
514
|
+
"pricing.past.blocked": "L'utilisation s'arrête là jusqu'à la prochaine période de facturation.",
|
|
440
515
|
"pricing.past.upgrade": "Au-delà, votre forfait passe automatiquement au niveau supérieur.",
|
|
441
516
|
"pricing.models": "Modèles : {names}",
|
|
442
517
|
"pricing.modelRates": "{model} : {input} en entrée, {output} en sortie",
|
|
@@ -558,6 +633,9 @@ const de = {
|
|
|
558
633
|
"account.plan": "Tarif",
|
|
559
634
|
"account.status": "Status",
|
|
560
635
|
"account.periodEnds": "Aktueller Zeitraum endet",
|
|
636
|
+
"account.usageSoFar": "Nutzung bisher",
|
|
637
|
+
"account.nextInvoiceAt": "Nächste Rechnung bei",
|
|
638
|
+
"account.usagePaused": "Die Nutzung ist bis zur Zahlung Ihrer letzten Rechnung pausiert.",
|
|
561
639
|
"account.endsOn": "Endet am",
|
|
562
640
|
"status.active": "aktiv",
|
|
563
641
|
"status.trialing": "Testphase",
|
|
@@ -605,7 +683,29 @@ const de = {
|
|
|
605
683
|
"pricing.choosePlan": "Tarif wählen",
|
|
606
684
|
"pricing.custom": "Individuell",
|
|
607
685
|
"pricing.perMonth": "/ Monat",
|
|
686
|
+
"pricing.dim.line": "{model}, {label}: {price}",
|
|
687
|
+
"pricing.dim.perThousand": "{price} pro 1.000 {unit}",
|
|
688
|
+
"pricing.dim.fromPerThousand": "ab {price} pro 1.000 {unit}",
|
|
689
|
+
"pricing.dim.free": "kostenlos",
|
|
690
|
+
"pricing.dim.perTransaction": "{rates} pro Transaktion",
|
|
691
|
+
"pricing.dim.upTo": "{rate} bis {amount}",
|
|
692
|
+
"pricing.dim.then": "danach {rate}",
|
|
693
|
+
"pricing.dim.atLeast": "mindestens {amount}",
|
|
694
|
+
"pricing.dim.atMost": "höchstens {amount}",
|
|
695
|
+
"pricing.dim.freeFirst": "die ersten {n} kostenlos",
|
|
696
|
+
"pricing.dim.noRateFirst": "kein Satz auf die ersten {amount}",
|
|
697
|
+
"pricing.dim.package": "{price} pro {size} {unit}",
|
|
698
|
+
"pricing.dim.eventPrice": "pro {unit} zum jeweiligen Preis",
|
|
608
699
|
"pricing.billedAnnually": "jährlich abgerechnet",
|
|
700
|
+
"pricing.weekly": "Wöchentlich",
|
|
701
|
+
"pricing.quarter": "Vierteljährlich",
|
|
702
|
+
"pricing.half_year": "Halbjährlich",
|
|
703
|
+
"pricing.billed.week": "wöchentlich abgerechnet",
|
|
704
|
+
"pricing.billed.quarter": "vierteljährlich abgerechnet",
|
|
705
|
+
"pricing.billed.half_year": "halbjährlich abgerechnet",
|
|
706
|
+
"pricing.usage.month": "Nutzung monatlich abgerechnet",
|
|
707
|
+
"pricing.usage.quarter": "Nutzung vierteljährlich abgerechnet",
|
|
708
|
+
"pricing.usage.half_year": "Nutzung halbjährlich abgerechnet",
|
|
609
709
|
"pricing.trial": "{days} Tage kostenlos testen",
|
|
610
710
|
"pricing.endsAfter": "{days} Tage lang, danach einen Tarif wählen",
|
|
611
711
|
"pricing.includes": "Enthält {parts} pro Monat",
|
|
@@ -614,7 +714,7 @@ const de = {
|
|
|
614
714
|
"pricing.apiCalls": "{n} API-Aufrufe",
|
|
615
715
|
"pricing.per1M": "Pro 1 Mio. Tokens:",
|
|
616
716
|
"pricing.past.billed": "Darüber hinaus pro 1 Mio. Tokens:",
|
|
617
|
-
"pricing.past.blocked": "Die Nutzung stoppt dann bis zum nächsten
|
|
717
|
+
"pricing.past.blocked": "Die Nutzung stoppt dann bis zum nächsten Abrechnungszeitraum.",
|
|
618
718
|
"pricing.past.upgrade": "Darüber hinaus wird Ihr Tarif automatisch hochgestuft.",
|
|
619
719
|
"pricing.models": "Modelle: {names}",
|
|
620
720
|
"pricing.modelRates": "{model}: {input} Input, {output} Output",
|