@schematichq/schematic-components 2.27.1 → 2.29.0

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.
@@ -2028,6 +2028,7 @@ var initialContext = {
2028
2028
  hydrate: stub,
2029
2029
  hydrateComponent: stub,
2030
2030
  hydrateExternal: stub,
2031
+ rehydrateWithParams: stub,
2031
2032
  getUpcomingInvoice: stub,
2032
2033
  getCustomerBalance: stub,
2033
2034
  listInvoices: stub,
@@ -7567,7 +7568,8 @@ function HydrateComponentParamsFromJSONTyped(json, ignoreDiscriminator) {
7567
7568
  return json;
7568
7569
  }
7569
7570
  return {
7570
- catalogId: json["catalog_id"] == null ? void 0 : json["catalog_id"]
7571
+ catalogId: json["catalog_id"] == null ? void 0 : json["catalog_id"],
7572
+ includeAddOnIds: json["include_add_on_ids"] == null ? void 0 : json["include_add_on_ids"]
7571
7573
  };
7572
7574
  }
7573
7575
 
@@ -8599,6 +8601,9 @@ var CheckoutexternalApi = class extends BaseAPI {
8599
8601
  if (requestParameters["catalogId"] != null) {
8600
8602
  queryParameters["catalog_id"] = requestParameters["catalogId"];
8601
8603
  }
8604
+ if (requestParameters["includeAddOnIds"] != null) {
8605
+ queryParameters["include_add_on_ids"] = requestParameters["includeAddOnIds"];
8606
+ }
8602
8607
  const headerParameters = {};
8603
8608
  if (this.configuration && this.configuration.apiKey) {
8604
8609
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
@@ -13218,6 +13223,7 @@ var en = {
13218
13223
  "An invoice is created when charges reach $X; the rest is billed monthly.": "An invoice is created when charges reach {{amount}}; the rest is billed monthly.",
13219
13224
  "An unknown error occurred.": "An unknown error occurred.",
13220
13225
  "Billed": "Billed {{period}}",
13226
+ "Billing threshold": "Billing threshold",
13221
13227
  "Bundle selected": "Bundle selected",
13222
13228
  "Buy credits": "Buy credits",
13223
13229
  "Cancel": "Cancel",
@@ -13252,8 +13258,11 @@ var en = {
13252
13258
  "Due today": "Due today",
13253
13259
  "Edit payment details": "Edit payment details",
13254
13260
  "Edit": "Edit",
13261
+ "Email": "Email",
13255
13262
  "Ends on": "Ends on {{date}}",
13256
13263
  "Enter discount code": "Enter discount code",
13264
+ "Enter email address": "Enter email address",
13265
+ "Error": "Error",
13257
13266
  "Error initializing payment method change. Please try again.": "Error initializing payment method change. Please try again.",
13258
13267
  "Error processing payment. Please try a different payment method.": "Error processing payment. Please try a different payment method.",
13259
13268
  "Error retrieving plan details. Please try again in a moment.": "Error retrieving plan details. Please try again in a moment.",
@@ -13274,6 +13283,7 @@ var en = {
13274
13283
  "Invoice credit tooltip": "Credit \u2014 this amount was returned to your account, typically due to a plan change or proration",
13275
13284
  "Invoice charge tooltip": "Charge \u2014 you were billed this amount",
13276
13285
  "Invoices": "Invoices",
13286
+ "Limit": "Limit",
13277
13287
  "Limit of": "Limit of {{amount}}",
13278
13288
  "Loading": "Loading",
13279
13289
  "Manage plan": "Manage plan",
@@ -13298,6 +13308,8 @@ var en = {
13298
13308
  "Payment Details": "Payment Details",
13299
13309
  "Plan selected": "Plan selected",
13300
13310
  "Please accept the agreement to continue.": "Please accept the agreement to continue.",
13311
+ "Please try again later.": "Please try again later.",
13312
+ "Portal not found": "Portal not found",
13301
13313
  "Plan": "Plan",
13302
13314
  "Plans": "Plans",
13303
13315
  "Please provide an access token.": "Please provide an access token.",
@@ -13349,6 +13361,7 @@ var en = {
13349
13361
  "There was a problem retrieving your upcoming invoice.": "There was a problem retrieving your upcoming invoice.",
13350
13362
  "There was a problem retrieving your invoices.": "There was a problem retrieving your invoices.",
13351
13363
  "Tier-based": "Tier-based",
13364
+ "Tiered pricing": "Tiered pricing",
13352
13365
  "Tiers apply progressively as quantity increases.": "Tiers apply progressively as quantity increases.",
13353
13366
  "Top up balance with:": "Top up balance with:",
13354
13367
  "Top-ups": "Top-ups",
@@ -13422,6 +13435,15 @@ var en = {
13422
13435
  "$X/unit/period": "{{cost}}/{{unit}}/{{period}}",
13423
13436
  "$X/Y units/period": "{{cost}}/{{size}} {{units}}/{{period}}",
13424
13437
  "day": "day",
13438
+ "day_one": "day",
13439
+ "day_other": "days",
13440
+ "hour_one": "hour",
13441
+ "hour_other": "hours",
13442
+ "minute_one": "minute",
13443
+ "minute_other": "minutes",
13444
+ "second_one": "second",
13445
+ "second_other": "seconds",
13446
+ "week": "week",
13425
13447
  "month": "month",
13426
13448
  "quarter": "quarter",
13427
13449
  "year": "year",
@@ -13430,6 +13452,13 @@ var en = {
13430
13452
  "yr": "yr",
13431
13453
  "one time": "one time",
13432
13454
  "billing period": "billing period",
13455
+ "billing period_one": "billing period",
13456
+ "billing period_other": "billing periods",
13457
+ "daily": "daily",
13458
+ "weekly": "weekly",
13459
+ "monthly": "monthly",
13460
+ "quarterly": "quarterly",
13461
+ "yearly": "yearly",
13433
13462
  "expires after purchase": "expires {{amount}} {{unit}} after purchase",
13434
13463
  "expires at the end of the billing period": "expires at the end of the billing period",
13435
13464
  "expires at the end of the next billing period": "expires at the end of the next billing period",
@@ -14119,11 +14148,9 @@ function formatBundleExpiry(bundle, t3) {
14119
14148
  if (typeof bundle.expiryUnitCount !== "number") {
14120
14149
  return void 0;
14121
14150
  }
14122
- const unit = bundle.expiryUnit === BillingCreditExpiryUnit.BillingPeriods ? t3("billing period") : t3("day");
14123
- return t3("expires after purchase", {
14124
- amount: bundle.expiryUnitCount,
14125
- unit: pluralize(unit, bundle.expiryUnitCount)
14126
- });
14151
+ const count = bundle.expiryUnitCount;
14152
+ const unit = bundle.expiryUnit === BillingCreditExpiryUnit.BillingPeriods ? t3("billing period", { count }) : t3("day", { count });
14153
+ return t3("expires after purchase", { amount: count, unit });
14127
14154
  }
14128
14155
  case BillingCreditExpiryType.EndOfBillingPeriod:
14129
14156
  return t3("expires at the end of the billing period");
@@ -14368,16 +14395,33 @@ function entitlementHasHardLimit(entitlement) {
14368
14395
  }
14369
14396
 
14370
14397
  // src/utils/api/feature.ts
14371
- function getFeatureName(feature, count = 0, ignore = false) {
14372
- const shouldBePlural = count === 0 || count > 1;
14398
+ function isEnglish(locale) {
14399
+ try {
14400
+ return new Intl.Locale(locale).language === "en";
14401
+ } catch {
14402
+ return true;
14403
+ }
14404
+ }
14405
+ function isOne(count, locale) {
14406
+ return new Intl.PluralRules(locale).select(count) === "one";
14407
+ }
14408
+ function getFeatureName(feature, locale, count, ignore = false) {
14409
+ if (!isEnglish(locale)) {
14410
+ const named = ignore ? { name: feature.name } : feature;
14411
+ const singularName2 = named.singularName || named.name;
14412
+ const pluralName2 = named.pluralName || singularName2;
14413
+ return count !== void 0 && isOne(count, locale) ? singularName2 : pluralName2;
14414
+ }
14415
+ const resolvedCount = count ?? 0;
14416
+ const shouldBePlural = resolvedCount === 0 || resolvedCount > 1;
14373
14417
  const { name, singularName, pluralName } = feature;
14374
14418
  if (!ignore && pluralName && shouldBePlural) {
14375
14419
  return pluralName;
14376
14420
  }
14377
14421
  if (!ignore && singularName) {
14378
- return shouldBePlural ? pluralize(singularName, count) : singularName;
14422
+ return shouldBePlural ? pluralize(singularName, resolvedCount) : singularName;
14379
14423
  }
14380
- return pluralize(name, count);
14424
+ return pluralize(name, resolvedCount);
14381
14425
  }
14382
14426
 
14383
14427
  // src/utils/color.ts
@@ -14587,8 +14631,21 @@ function formatCurrency(amount, {
14587
14631
  function formatOrdinal(n2, t3) {
14588
14632
  return t3("Ordinal", { count: n2, ordinal: true });
14589
14633
  }
14590
- function adjectify(str) {
14591
- return `${str}ly`;
14634
+ function adjectify(period, t3) {
14635
+ switch (period) {
14636
+ case "day":
14637
+ return t3("daily");
14638
+ case "week":
14639
+ return t3("weekly");
14640
+ case "month":
14641
+ return t3("monthly");
14642
+ case "quarter":
14643
+ return t3("quarterly");
14644
+ case "year":
14645
+ return t3("yearly");
14646
+ default:
14647
+ return period;
14648
+ }
14592
14649
  }
14593
14650
  var CURRENCY_FLAGS = {
14594
14651
  usd: "\u{1F1FA}\u{1F1F8}",
@@ -14704,11 +14761,12 @@ function getBillingPreviewText({
14704
14761
  );
14705
14762
  }
14706
14763
  const schedule = scheduleParts.length > 0 ? `${scheduleParts.join(" ")} ` : "";
14764
+ const period = t3(planPeriod);
14707
14765
  if (!discount) {
14708
14766
  return t3("You will be billed", {
14709
14767
  price: subscriptionPrice,
14710
14768
  usage,
14711
- period: planPeriod,
14769
+ period,
14712
14770
  schedule
14713
14771
  });
14714
14772
  }
@@ -14717,7 +14775,7 @@ function getBillingPreviewText({
14717
14775
  return t3("You will be billed", {
14718
14776
  price: discountedPrice,
14719
14777
  usage,
14720
- period: planPeriod,
14778
+ period,
14721
14779
  schedule
14722
14780
  });
14723
14781
  }
@@ -14725,7 +14783,7 @@ function getBillingPreviewText({
14725
14783
  return t3("You will be billed with discount window", {
14726
14784
  price: discountedPrice,
14727
14785
  usage,
14728
- period: planPeriod,
14786
+ period,
14729
14787
  schedule,
14730
14788
  window: t3("for the next months", { count: durationInMonths }),
14731
14789
  fullPrice: subscriptionPrice
@@ -14734,7 +14792,7 @@ function getBillingPreviewText({
14734
14792
  return t3("You will be billed next bill discount", {
14735
14793
  price: discountedPrice,
14736
14794
  usage,
14737
- period: planPeriod,
14795
+ period,
14738
14796
  schedule,
14739
14797
  fullPrice: subscriptionPrice
14740
14798
  });
@@ -15509,7 +15567,7 @@ var reducer = (state, action) => {
15509
15567
  // src/context/EmbedProvider.tsx
15510
15568
  var import_jsx_runtime4 = require("react/jsx-runtime");
15511
15569
  var getCustomHeaders = (sessionId) => ({
15512
- "X-Schematic-Components-Version": "2.27.1",
15570
+ "X-Schematic-Components-Version": "2.29.0",
15513
15571
  "X-Schematic-Session-ID": sessionId
15514
15572
  });
15515
15573
  var normalizeCurrencyFilter = (filter2) => {
@@ -15707,6 +15765,34 @@ var EmbedProvider = ({
15707
15765
  ),
15708
15766
  [hydrateExternal]
15709
15767
  );
15768
+ const rehydrateWithParams = (0, import_react5.useCallback)(
15769
+ async (params) => {
15770
+ const componentId = state.data?.component?.id;
15771
+ if (!componentId || !checkoutApi) {
15772
+ throw new Error(
15773
+ "[Schematic] `rehydrateWithParams` needs a `SchematicEmbed` that has loaded."
15774
+ );
15775
+ }
15776
+ const response = await checkoutApi.hydrateComponent({
15777
+ componentId,
15778
+ includeAddOnIds: params.includeAddOnIds
15779
+ });
15780
+ const returnedIds = new Set(
15781
+ response.data.activeAddOns.map((addOn) => addOn.id)
15782
+ );
15783
+ const missingIds = (params.includeAddOnIds ?? []).filter(
15784
+ (id) => !returnedIds.has(id)
15785
+ );
15786
+ if (missingIds.length > 0) {
15787
+ console.warn(
15788
+ `[Schematic] These included add-ons were left out because each must be an add-on with a billing product: ${missingIds.join(", ")}`
15789
+ );
15790
+ }
15791
+ dispatch({ type: "HYDRATE_COMPONENT", data: response.data });
15792
+ return response.data;
15793
+ },
15794
+ [checkoutApi, state.data?.component?.id]
15795
+ );
15710
15796
  const createSetupIntent = (0, import_react5.useCallback)(async () => {
15711
15797
  return checkoutApi?.createSetupIntent();
15712
15798
  }, [checkoutApi]);
@@ -16050,6 +16136,7 @@ var EmbedProvider = ({
16050
16136
  hydrate: debouncedHydrate,
16051
16137
  hydrateComponent: debouncedHydrateComponent,
16052
16138
  hydrateExternal: debouncedHydrateExternal,
16139
+ rehydrateWithParams,
16053
16140
  createSetupIntent: debouncedCreateSetupIntent,
16054
16141
  updatePaymentMethod: debouncedUpdatePaymentMethod,
16055
16142
  deletePaymentMethod: debouncedDeletePaymentMethod,
@@ -16404,6 +16491,7 @@ function useRequest(fn) {
16404
16491
  var import_react13 = require("react");
16405
16492
  function useTrialEnd() {
16406
16493
  const { data } = useEmbed();
16494
+ const { t: t3 } = useTranslation();
16407
16495
  const { endDate, amount, units } = (0, import_react13.useMemo)(() => {
16408
16496
  const billingSubscription = data?.company?.billingSubscription;
16409
16497
  const end = typeof billingSubscription?.trialEnd === "number" ? new Date(billingSubscription.trialEnd * 1e3) : void 0;
@@ -16426,10 +16514,10 @@ function useTrialEnd() {
16426
16514
  amount2 = Math.floor(difference / SECONDS_IN_MS);
16427
16515
  unit = "second";
16428
16516
  }
16429
- units2 = pluralize(unit, amount2);
16517
+ units2 = t3(unit, { count: amount2 });
16430
16518
  }
16431
16519
  return { endDate: end, amount: amount2, units: units2 };
16432
- }, [data?.company?.billingSubscription]);
16520
+ }, [data?.company?.billingSubscription, t3]);
16433
16521
  return { endDate, amount, units };
16434
16522
  }
16435
16523
 
@@ -17832,7 +17920,7 @@ var AutoTopupNotice = ({
17832
17920
  trigger: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
17833
17921
  Icon3,
17834
17922
  {
17835
- title: "auto top-up",
17923
+ title: t3("Auto Top-up"),
17836
17924
  name: "info-rounded",
17837
17925
  color: `hsla(0, 0%, ${isLightBackground ? 0 : 100}%, 0.5)`,
17838
17926
  style: { lineHeight: 0 }
@@ -17871,7 +17959,7 @@ var BillingThresholdTooltip = ({
17871
17959
  trigger: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
17872
17960
  Icon3,
17873
17961
  {
17874
- title: "billing threshold",
17962
+ title: t3("Billing threshold"),
17875
17963
  name: "info-rounded",
17876
17964
  color: `hsla(0, 0%, ${isLightBackground ? 0 : 100}%, 0.5)`,
17877
17965
  style: { lineHeight: 0 }
@@ -18067,7 +18155,7 @@ var Entitlement = ({
18067
18155
  packageSize,
18068
18156
  " "
18069
18157
  ] }),
18070
- getFeatureName(entitlement.feature, packageSize),
18158
+ getFeatureName(entitlement.feature, locale, packageSize),
18071
18159
  entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
18072
18160
  " ",
18073
18161
  t3("per"),
@@ -18092,12 +18180,13 @@ var Entitlement = ({
18092
18180
  " ",
18093
18181
  getFeatureName(
18094
18182
  entitlement.valueCredit,
18183
+ locale,
18095
18184
  entitlement.consumptionRate || void 0
18096
18185
  ),
18097
18186
  " ",
18098
18187
  t3("per"),
18099
18188
  " ",
18100
- getFeatureName(entitlement.feature, 1)
18189
+ getFeatureName(entitlement.feature, locale, 1)
18101
18190
  ] });
18102
18191
  }
18103
18192
  if (entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit) {
@@ -18105,13 +18194,17 @@ var Entitlement = ({
18105
18194
  amount: creditBasedEntitlementLimit.limit,
18106
18195
  units: getFeatureName(
18107
18196
  entitlement.feature,
18197
+ locale,
18108
18198
  creditBasedEntitlementLimit.limit
18109
18199
  ),
18110
- period: creditBasedEntitlementLimit.period
18200
+ period: t3(
18201
+ creditBasedEntitlementLimit.period
18202
+ )
18111
18203
  }) : t3("Up to X units", {
18112
18204
  amount: creditBasedEntitlementLimit.limit,
18113
18205
  units: getFeatureName(
18114
18206
  entitlement.feature,
18207
+ locale,
18115
18208
  creditBasedEntitlementLimit.limit
18116
18209
  )
18117
18210
  }) });
@@ -18119,11 +18212,11 @@ var Entitlement = ({
18119
18212
  if (hasNumericValue) {
18120
18213
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
18121
18214
  entitlement.valueType === EntitlementValueType.Unlimited && !entitlement.priceBehavior ? t3("Unlimited", {
18122
- item: getFeatureName(entitlement.feature)
18215
+ item: getFeatureName(entitlement.feature, locale)
18123
18216
  }) : typeof limit === "number" && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
18124
18217
  formatNumber(limit, { locale }),
18125
18218
  " ",
18126
- getFeatureName(entitlement.feature, limit)
18219
+ getFeatureName(entitlement.feature, locale, limit)
18127
18220
  ] }),
18128
18221
  metricPeriodName && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
18129
18222
  " ",
@@ -18162,7 +18255,7 @@ var Entitlement = ({
18162
18255
  packageSize,
18163
18256
  " "
18164
18257
  ] }),
18165
- getFeatureName(entitlement.feature, packageSize),
18258
+ getFeatureName(entitlement.feature, locale, packageSize),
18166
18259
  entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
18167
18260
  "/",
18168
18261
  shortenPeriod(period, t3)
@@ -18502,7 +18595,7 @@ var AutoTopup = ({
18502
18595
  updateAutoTopupConfig
18503
18596
  }) => {
18504
18597
  const { settings } = useEmbed();
18505
- const { t: t3 } = useTranslation();
18598
+ const { t: t3, locale } = useTranslation();
18506
18599
  const cardPadding = settings.theme.card.padding / TEXT_BASE_SIZE;
18507
18600
  const configurableCreditGrants = (0, import_react25.useMemo)(() => {
18508
18601
  return planCreditGrants.reduce(
@@ -18549,7 +18642,7 @@ var AutoTopup = ({
18549
18642
  }) }) }),
18550
18643
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Box, { as: "p", $marginBottom: "2rem", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Text, { children: t3(
18551
18644
  "Automatically purchase more credits when your balance is low",
18552
- { units: getFeatureName(grant.credit) }
18645
+ { units: getFeatureName(grant.credit, locale) }
18553
18646
  ) }) })
18554
18647
  ] }),
18555
18648
  /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Flex, { $alignItems: "center", $gap: "0.5rem", $marginBottom: "1rem", children: [
@@ -18746,7 +18839,7 @@ var Quantity = ({
18746
18839
  $color: settings.theme.typography.text.color,
18747
18840
  children: t3("Currently using", {
18748
18841
  quantity: entitlement.usage,
18749
- unit: getFeatureName(entitlement.feature)
18842
+ unit: getFeatureName(entitlement.feature, locale)
18750
18843
  })
18751
18844
  }
18752
18845
  ),
@@ -18811,7 +18904,11 @@ var Quantity = ({
18811
18904
  packageSize,
18812
18905
  " "
18813
18906
  ] }),
18814
- getFeatureName(entitlement.feature, packageSize),
18907
+ getFeatureName(
18908
+ entitlement.feature,
18909
+ locale,
18910
+ packageSize
18911
+ ),
18815
18912
  "/",
18816
18913
  shortenPeriod(period, t3)
18817
18914
  ] })
@@ -18848,12 +18945,14 @@ var Quantity = ({
18848
18945
  quantity: entitlement.quantity,
18849
18946
  licenseName: getFeatureName(
18850
18947
  entitlement.feature,
18948
+ locale,
18851
18949
  entitlement.quantity
18852
18950
  ),
18853
18951
  perUnit: perLicenseGrant.amount,
18854
18952
  total: includedCredits,
18855
18953
  creditName: getFeatureName(
18856
18954
  licenseCredit,
18955
+ locale,
18857
18956
  includedCredits
18858
18957
  ),
18859
18958
  period: shortenPeriod(licenseCredit.period, t3)
@@ -18875,11 +18974,13 @@ var Quantity = ({
18875
18974
  added: addedQuantity,
18876
18975
  licenseName: getFeatureName(
18877
18976
  entitlement.feature,
18977
+ locale,
18878
18978
  addedQuantity
18879
18979
  ),
18880
18980
  credits: addedCredits,
18881
18981
  creditName: getFeatureName(
18882
18982
  licenseCredit,
18983
+ locale,
18883
18984
  addedCredits
18884
18985
  )
18885
18986
  }),
@@ -18889,9 +18990,10 @@ var Quantity = ({
18889
18990
  total: includedCredits,
18890
18991
  creditName: getFeatureName(
18891
18992
  licenseCredit,
18993
+ locale,
18892
18994
  includedCredits
18893
18995
  ),
18894
- cadence: adjectify(licenseCredit.period),
18996
+ cadence: adjectify(licenseCredit.period, t3),
18895
18997
  day: formatOrdinal(renewalDate.getDate(), t3)
18896
18998
  })
18897
18999
  ] })
@@ -18930,6 +19032,7 @@ function renderMeteredEntitlementPricing({
18930
19032
  "/",
18931
19033
  feature ? getFeatureName(
18932
19034
  feature,
19035
+ locale,
18933
19036
  packageSize
18934
19037
  ) : featureName || "unit"
18935
19038
  ] });
@@ -18947,6 +19050,7 @@ function renderMeteredEntitlementPricing({
18947
19050
  ] }),
18948
19051
  feature ? getFeatureName(
18949
19052
  feature,
19053
+ locale,
18950
19054
  packageSize
18951
19055
  ) : featureName || "unit"
18952
19056
  ] });
@@ -19264,7 +19368,7 @@ var Credits = ({
19264
19368
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { display: "heading6", children: [
19265
19369
  formatNumber(bundle.quantity ?? 0, { locale }),
19266
19370
  " ",
19267
- getFeatureName(bundle)
19371
+ getFeatureName(bundle, locale)
19268
19372
  ] }) })
19269
19373
  ] }),
19270
19374
  typeof price === "number" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { children: formatCurrency(price, {
@@ -21216,7 +21320,7 @@ var CurrencyPeriodMismatchNotice = ({
21216
21320
  style: { opacity: 0.85, textAlign: "center" },
21217
21321
  children: t3("No {{currency}} price for the {{period}} billing period.", {
21218
21322
  currency: currency.toUpperCase(),
21219
- period
21323
+ period: adjectify(period, t3)
21220
21324
  })
21221
21325
  }
21222
21326
  )
@@ -21378,7 +21482,7 @@ var HardLimitTooltip = ({
21378
21482
  feature,
21379
21483
  limit
21380
21484
  }) => {
21381
- const { t: t3 } = useTranslation();
21485
+ const { t: t3, locale } = useTranslation();
21382
21486
  const { data } = useEmbed();
21383
21487
  const isLightBackground = useIsLightBackground();
21384
21488
  const showHardLimit = data?.displaySettings?.showHardLimit ?? false;
@@ -21392,7 +21496,7 @@ var HardLimitTooltip = ({
21392
21496
  trigger: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
21393
21497
  Icon3,
21394
21498
  {
21395
- title: "limit",
21499
+ title: t3("Limit"),
21396
21500
  name: "info-rounded",
21397
21501
  color: `hsla(0, 0%, ${isLightBackground ? 0 : 100}%, 0.5)`,
21398
21502
  style: { lineHeight: 0 }
@@ -21400,7 +21504,7 @@ var HardLimitTooltip = ({
21400
21504
  ),
21401
21505
  content: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Text, { children: t3("Up to a limit of", {
21402
21506
  amount: limit,
21403
- units: getFeatureName(feature, limit)
21507
+ units: getFeatureName(feature, locale, limit)
21404
21508
  }) })
21405
21509
  }
21406
21510
  );
@@ -21764,7 +21868,7 @@ var PaymentForm = ({ onConfirm, financeData }) => {
21764
21868
  )
21765
21869
  ] }),
21766
21870
  stripe && collectEmail && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Box, { "data-field": "name", $marginBottom: "1.5rem", $verticalAlign: "top", children: [
21767
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Label, { htmlFor: "email", children: "Email" }),
21871
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Label, { htmlFor: "email", children: t3("Email") }),
21768
21872
  /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
21769
21873
  Input2,
21770
21874
  {
@@ -21773,7 +21877,7 @@ var PaymentForm = ({ onConfirm, financeData }) => {
21773
21877
  type: "email",
21774
21878
  value: email,
21775
21879
  autoComplete: "email",
21776
- placeholder: "Enter email address",
21880
+ placeholder: t3("Enter email address"),
21777
21881
  required: true,
21778
21882
  onChange: (e) => {
21779
21883
  userEditedEmailRef.current = true;
@@ -21900,7 +22004,7 @@ var PeriodToggle = ({
21900
22004
  },
21901
22005
  $size: 15,
21902
22006
  $weight: option === selectedOption ? 600 : 400,
21903
- children: t3("Billed", { period: adjectify(option) })
22007
+ children: t3("Billed", { period: adjectify(option, t3) })
21904
22008
  }
21905
22009
  )
21906
22010
  },
@@ -21940,7 +22044,7 @@ var PlanCreditText = ({
21940
22044
  entitlements,
21941
22045
  children
21942
22046
  }) => {
21943
- const { t: t3 } = useTranslation();
22047
+ const { t: t3, locale } = useTranslation();
21944
22048
  const { settings } = useEmbed();
21945
22049
  const sources = entitlements ?? [];
21946
22050
  const { perLicenseGrants } = credit;
@@ -21948,7 +22052,7 @@ var PlanCreditText = ({
21948
22052
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Text, { children: [
21949
22053
  credit.quantity,
21950
22054
  " ",
21951
- getFeatureName(credit, credit.quantity),
22055
+ getFeatureName(credit, locale, credit.quantity),
21952
22056
  credit.period && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
21953
22057
  " ",
21954
22058
  t3("per"),
@@ -21960,18 +22064,18 @@ var PlanCreditText = ({
21960
22064
  }
21961
22065
  const resolveLicenseName = (grant) => {
21962
22066
  const licenseFeature = (findLicenseSource(sources, grant.licenseId) ?? (grant.licenseId ? void 0 : findSoleLicenseSource(sources)))?.feature;
21963
- return licenseFeature ? getFeatureName(licenseFeature, 1) : t3("license");
22067
+ return licenseFeature ? getFeatureName(licenseFeature, locale, 1) : t3("license");
21964
22068
  };
21965
22069
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Flex, { $flexDirection: "column", $gap: "0.25rem", children: [
21966
22070
  perLicenseGrants.map((grant, grantIndex) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Text, { children: [
21967
22071
  credit.period ? t3("X credits per license per period", {
21968
22072
  amount: grant.amount,
21969
- creditName: getFeatureName(credit, grant.amount),
22073
+ creditName: getFeatureName(credit, locale, grant.amount),
21970
22074
  licenseName: resolveLicenseName(grant),
21971
22075
  period: t3(credit.period)
21972
22076
  }) : t3("X credits per license", {
21973
22077
  amount: grant.amount,
21974
- creditName: getFeatureName(credit, grant.amount),
22078
+ creditName: getFeatureName(credit, locale, grant.amount),
21975
22079
  licenseName: resolveLicenseName(grant)
21976
22080
  }),
21977
22081
  grantIndex === 0 && children
@@ -21984,7 +22088,7 @@ var PlanCreditText = ({
21984
22088
  $color: settings.theme.typography.text.color,
21985
22089
  children: t3("Plus X credits per period for your company", {
21986
22090
  amount: credit.fixedQuantity,
21987
- creditName: getFeatureName(credit, credit.fixedQuantity),
22091
+ creditName: getFeatureName(credit, locale, credit.fixedQuantity),
21988
22092
  period: t3(credit.period)
21989
22093
  })
21990
22094
  }
@@ -22013,7 +22117,7 @@ var PriceText = ({
22013
22117
  formatCurrency(perUnitPrice, { locale, currency }),
22014
22118
  /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("sub", { children: [
22015
22119
  "/",
22016
- getFeatureName(feature, 1)
22120
+ getFeatureName(feature, locale, 1)
22017
22121
  ] })
22018
22122
  ] });
22019
22123
  }
@@ -22030,7 +22134,7 @@ var PriceText = ({
22030
22134
  formatCurrency(perUnitPrice, { locale, currency }),
22031
22135
  /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("sub", { children: [
22032
22136
  "/",
22033
- getFeatureName(feature, 1)
22137
+ getFeatureName(feature, locale, 1)
22034
22138
  ] }),
22035
22139
  " + ",
22036
22140
  formatCurrency(flatAmount, { locale, currency }),
@@ -22091,7 +22195,7 @@ var PricingTiersTooltip = ({
22091
22195
  trigger: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
22092
22196
  Icon3,
22093
22197
  {
22094
- title: "tiered pricing",
22198
+ title: t3("Tiered pricing"),
22095
22199
  name: "info-rounded",
22096
22200
  color: `hsla(0, 0%, ${isLightBackground ? 0 : 100}%, 0.5)`,
22097
22201
  style: { lineHeight: 0 }
@@ -22593,11 +22697,11 @@ var EntitlementRow = (props) => {
22593
22697
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Text, { display: "heading4", children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
22594
22698
  quantity,
22595
22699
  " ",
22596
- getFeatureName(feature, quantity)
22700
+ getFeatureName(feature, locale, quantity)
22597
22701
  ] }) : priceBehavior === EntitlementPriceBehavior.Overage && typeof softLimit === "number" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
22598
22702
  softLimit,
22599
22703
  " ",
22600
- getFeatureName(feature, softLimit)
22704
+ getFeatureName(feature, locale, softLimit)
22601
22705
  ] }) : feature.name }) }),
22602
22706
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? (
22603
22707
  // A tiered scheme still resolves to a fixed amount at the chosen
@@ -22628,7 +22732,7 @@ var EntitlementRow = (props) => {
22628
22732
  packageSize,
22629
22733
  " "
22630
22734
  ] }),
22631
- getFeatureName(feature, packageSize),
22735
+ getFeatureName(feature, locale, packageSize),
22632
22736
  feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
22633
22737
  "/",
22634
22738
  shortenPeriod(planPeriod, t3)
@@ -22925,7 +23029,7 @@ var SubscriptionSidebar = (0, import_react37.forwardRef)(
22925
23029
  $color: settings.theme.typography.text.color,
22926
23030
  children: t3("Includes X credits per period", {
22927
23031
  total: includedCredits,
22928
- creditName: getFeatureName(credit, includedCredits),
23032
+ creditName: getFeatureName(credit, locale, includedCredits),
22929
23033
  period: shortenPeriod(credit.period, t3)
22930
23034
  })
22931
23035
  }
@@ -23663,7 +23767,7 @@ var SubscriptionSidebar = (0, import_react37.forwardRef)(
23663
23767
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Text, { children: [
23664
23768
  formatNumber(amount, { locale }),
23665
23769
  " ",
23666
- getFeatureName(bundle, amount),
23770
+ getFeatureName(bundle, locale, amount),
23667
23771
  expiry && ` \xB7 ${expiry}`
23668
23772
  ] }) })
23669
23773
  ] }),
@@ -23957,21 +24061,21 @@ var TieredPricingDetails = ({
23957
24061
  if (flatAmount === 0 && perUnitPrice === 0) {
23958
24062
  return t3("Up to X units for free", {
23959
24063
  X: upTo,
23960
- units: getFeatureName(entitlement.feature, upTo)
24064
+ units: getFeatureName(entitlement.feature, locale, upTo)
23961
24065
  });
23962
24066
  }
23963
24067
  if (flatAmount === 0 && perUnitPrice > 0) {
23964
24068
  return t3("Up to X units at $Y/unit", {
23965
24069
  X: upTo,
23966
- units: getFeatureName(entitlement.feature, upTo),
24070
+ units: getFeatureName(entitlement.feature, locale, upTo),
23967
24071
  Y: formatCurrency(perUnitPrice, { locale, currency }),
23968
- unit: getFeatureName(entitlement.feature, 1)
24072
+ unit: getFeatureName(entitlement.feature, locale, 1)
23969
24073
  });
23970
24074
  }
23971
24075
  if (flatAmount > 0 && perUnitPrice === 0) {
23972
24076
  return t3("Up to X units for $Y/period", {
23973
24077
  X: upTo,
23974
- units: getFeatureName(entitlement.feature, upTo),
24078
+ units: getFeatureName(entitlement.feature, locale, upTo),
23975
24079
  Y: formatCurrency(flatAmount, { locale, currency }),
23976
24080
  period
23977
24081
  });
@@ -23979,9 +24083,9 @@ var TieredPricingDetails = ({
23979
24083
  if (flatAmount > 0 && perUnitPrice > 0) {
23980
24084
  return t3("Up to X units at $Y/unit + $Z/period", {
23981
24085
  X: upTo,
23982
- units: getFeatureName(entitlement.feature, upTo),
24086
+ units: getFeatureName(entitlement.feature, locale, upTo),
23983
24087
  Y: formatCurrency(perUnitPrice, { locale, currency }),
23984
- unit: getFeatureName(entitlement.feature, 1),
24088
+ unit: getFeatureName(entitlement.feature, locale, 1),
23985
24089
  Z: formatCurrency(flatAmount, { locale, currency }),
23986
24090
  period
23987
24091
  });
@@ -24284,6 +24388,7 @@ var Badge = () => {
24284
24388
  // src/components/layout/RenderLayout.tsx
24285
24389
  var import_jsx_runtime49 = require("react/jsx-runtime");
24286
24390
  var Disabled = () => {
24391
+ const { t: t3 } = useTranslation();
24287
24392
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Box, { $width: "max-content", $height: "max-content", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
24288
24393
  Element,
24289
24394
  {
@@ -24293,8 +24398,8 @@ var Disabled = () => {
24293
24398
  $alignItems: "center",
24294
24399
  $whiteSpace: "nowrap",
24295
24400
  children: [
24296
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { as: "h1", display: "heading1", children: "Portal not found" }) }),
24297
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { as: "p", children: "Please try again later." })
24401
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { as: "h1", display: "heading1", children: t3("Portal not found") }) }),
24402
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { as: "p", children: t3("Please try again later.") })
24298
24403
  ]
24299
24404
  }
24300
24405
  ) }) });
@@ -24488,12 +24593,12 @@ var UsageDetails = ({ entitlement, layout }) => {
24488
24593
  if (priceBehavior === EntitlementPriceBehavior.PayInAdvance && typeof allocation === "number") {
24489
24594
  return t3("X units", {
24490
24595
  amount: formatNumber(allocation, { locale }),
24491
- units: getFeatureName(feature, allocation)
24596
+ units: getFeatureName(feature, locale, allocation)
24492
24597
  });
24493
24598
  }
24494
24599
  if (priceBehavior === EntitlementPriceBehavior.PayAsYouGo && typeof price === "number") {
24495
24600
  const formattedCost = formatCurrency(price, { locale, currency });
24496
- const featureName = getFeatureName(feature, packageSize);
24601
+ const featureName = getFeatureName(feature, locale, packageSize);
24497
24602
  return packageSize > 1 ? t3("$X per Y units", {
24498
24603
  cost: formattedCost,
24499
24604
  size: packageSize,
@@ -24503,15 +24608,15 @@ var UsageDetails = ({ entitlement, layout }) => {
24503
24608
  if (priceBehavior === EntitlementPriceBehavior.Overage && typeof softLimit === "number") {
24504
24609
  return t3("X units", {
24505
24610
  amount: formatNumber(softLimit, { locale }),
24506
- units: getFeatureName(feature, softLimit)
24611
+ units: getFeatureName(feature, locale, softLimit)
24507
24612
  });
24508
24613
  }
24509
24614
  if (priceBehavior === EntitlementPriceBehavior.Tier) {
24510
24615
  return typeof currentTier?.to === "number" && (currentTier?.to === Infinity ? t3("Unlimited in this tier", {
24511
- feature: getFeatureName(feature)
24616
+ feature: getFeatureName(feature, locale)
24512
24617
  }) : t3("Up to X units in this tier", {
24513
24618
  amount: formatNumber(currentTier.to, { locale }),
24514
- feature: getFeatureName(feature, currentTier.to)
24619
+ feature: getFeatureName(feature, locale, currentTier.to)
24515
24620
  }));
24516
24621
  }
24517
24622
  if (showCredits && priceBehavior === EntitlementPriceBehavior.CreditBurndown && planEntitlement?.valueCredit && typeof planEntitlement?.consumptionRate === "number") {
@@ -24519,6 +24624,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24519
24624
  amount: formatConsumptionRate(planEntitlement.consumptionRate, locale),
24520
24625
  units: getFeatureName(
24521
24626
  planEntitlement.valueCredit,
24627
+ locale,
24522
24628
  planEntitlement.consumptionRate
24523
24629
  )
24524
24630
  });
@@ -24526,18 +24632,18 @@ var UsageDetails = ({ entitlement, layout }) => {
24526
24632
  if (priceBehavior === EntitlementPriceBehavior.CreditBurndown && typeof limit === "number") {
24527
24633
  return t3("X units remaining", {
24528
24634
  amount: formatNumber(limit, { locale }),
24529
- units: getFeatureName(feature, limit)
24635
+ units: getFeatureName(feature, locale, limit)
24530
24636
  });
24531
24637
  }
24532
24638
  if (!priceBehavior && typeof allocation === "number") {
24533
24639
  const numericLimit = limit ?? allocation;
24534
24640
  return t3("X units", {
24535
24641
  amount: formatNumber(numericLimit, { locale }),
24536
- units: getFeatureName(feature, numericLimit)
24642
+ units: getFeatureName(feature, locale, numericLimit)
24537
24643
  });
24538
24644
  }
24539
24645
  if (!priceBehavior && allocationType === "unlimited") {
24540
- return t3("Unlimited", { item: getFeatureName(feature) });
24646
+ return t3("Unlimited", { item: getFeatureName(feature, locale) });
24541
24647
  }
24542
24648
  }, [
24543
24649
  t3,
@@ -24566,11 +24672,11 @@ var UsageDetails = ({ entitlement, layout }) => {
24566
24672
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react42.Fragment, { children: packageSize > 1 ? t3("$X/Y units/period", {
24567
24673
  cost: formatCurrency(price, { locale, currency }),
24568
24674
  size: packageSize,
24569
- units: getFeatureName(feature, packageSize),
24675
+ units: getFeatureName(feature, locale, packageSize),
24570
24676
  period: shortenPeriod(period, t3)
24571
24677
  }) : t3("$X/unit/period", {
24572
24678
  cost: formatCurrency(price, { locale, currency }),
24573
- unit: getFeatureName(feature, packageSize),
24679
+ unit: getFeatureName(feature, locale, packageSize),
24574
24680
  period: shortenPeriod(period, t3)
24575
24681
  }) }, index)
24576
24682
  );
@@ -24579,7 +24685,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24579
24685
  acc.push(
24580
24686
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react42.Fragment, { children: t3("X units used", {
24581
24687
  amount: usage,
24582
- units: getFeatureName(feature, usage)
24688
+ units: getFeatureName(feature, locale, usage)
24583
24689
  }) }, index)
24584
24690
  );
24585
24691
  index += 1;
@@ -24809,9 +24915,10 @@ var IncludedFeatures = (0, import_react43.forwardRef)(({ className, ...rest }, r
24809
24915
  singularName: grant.singularName,
24810
24916
  pluralName: grant.pluralName
24811
24917
  },
24918
+ locale,
24812
24919
  grant.creditAmount
24813
24920
  ),
24814
- licenseName: entitlement.feature ? getFeatureName(entitlement.feature, 1) : ""
24921
+ licenseName: entitlement.feature ? getFeatureName(entitlement.feature, locale, 1) : ""
24815
24922
  }) }, grantIndex)),
24816
24923
  props.entitlementExpiration.isVisible && entitlement.entitlementExpirationDate && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
24817
24924
  Text,
@@ -25145,7 +25252,7 @@ var PriceDetails = ({
25145
25252
  packageSize,
25146
25253
  " "
25147
25254
  ] }),
25148
- getFeatureName(feature, packageSize),
25255
+ getFeatureName(feature, locale, packageSize),
25149
25256
  feature.featureType === FeatureType.Trait && period && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
25150
25257
  "/",
25151
25258
  shortenPeriod(period, t3)
@@ -25170,7 +25277,7 @@ var PriceDetails = ({
25170
25277
  typeof amount === "number" && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: priceBehavior === EntitlementPriceBehavior.Overage ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Text, { children: [
25171
25278
  formatNumber(amount, { locale }),
25172
25279
  " ",
25173
- getFeatureName(feature, amount),
25280
+ getFeatureName(feature, locale, amount),
25174
25281
  " \xB7 ",
25175
25282
  formatCurrency(currentTierPerUnitPrice * amount, {
25176
25283
  locale,
@@ -25298,7 +25405,7 @@ var UsageByUser = ({ source, unit }) => {
25298
25405
  const total = current?.section?.total ?? 0;
25299
25406
  const totalUsers = current?.section?.totalUsers ?? 0;
25300
25407
  const unattributed = current?.section?.unattributed;
25301
- const formatAmount = (amount) => `${formatNumber(amount, { locale })} ${getFeatureName(unit, amount)}`;
25408
+ const formatAmount = (amount) => `${formatNumber(amount, { locale })} ${getFeatureName(unit, locale, amount)}`;
25302
25409
  if (error) {
25303
25410
  return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", $alignItems: "flex-start", children: [
25304
25411
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { display: "heading4", children: t3("Usage by user") }),
@@ -25403,10 +25510,10 @@ var Limit = ({ entitlement, usageDetails, fontStyle }) => {
25403
25510
  const acc = [];
25404
25511
  acc.push(
25405
25512
  priceBehavior === EntitlementPriceBehavior.Tier && typeof currentTier?.to === "number" && typeof feature !== "undefined" ? currentTier?.to === Infinity ? t3("Unlimited in this tier", {
25406
- feature: getFeatureName(feature)
25513
+ feature: getFeatureName(feature, locale)
25407
25514
  }) : t3("Up to X units in this tier", {
25408
25515
  amount: currentTier.to,
25409
- feature: getFeatureName(feature)
25516
+ feature: getFeatureName(feature, locale)
25410
25517
  }) : priceBehavior === EntitlementPriceBehavior.Overage && typeof limit === "number" ? t3("X included", {
25411
25518
  amount: formatNumber(limit, { locale })
25412
25519
  }) : priceBehavior === EntitlementPriceBehavior.PayInAdvance && typeof usage === "number" ? `${formatNumber(usage, { locale })} ${t3("used")}` : priceBehavior === EntitlementPriceBehavior.PayAsYouGo && typeof cost === "number" ? formatCurrency(cost, { locale, currency: billingPrice?.currency }) : data?.displaySettings?.showCredits && priceBehavior === EntitlementPriceBehavior.CreditBurndown && typeof planEntitlement?.valueCredit !== "undefined" && typeof planEntitlement?.consumptionRate === "number" ? t3("X units per use", {
@@ -25416,11 +25523,12 @@ var Limit = ({ entitlement, usageDetails, fontStyle }) => {
25416
25523
  ),
25417
25524
  units: getFeatureName(
25418
25525
  planEntitlement.valueCredit,
25526
+ locale,
25419
25527
  planEntitlement.consumptionRate
25420
25528
  )
25421
25529
  }) : priceBehavior === EntitlementPriceBehavior.CreditBurndown && typeof feature !== "undefined" && typeof limit === "number" ? t3("X units remaining", {
25422
25530
  amount: formatNumber(limit, { locale }),
25423
- units: getFeatureName(feature, limit)
25531
+ units: getFeatureName(feature, locale, limit)
25424
25532
  }) : typeof limit === "number" ? t3("Limit of", {
25425
25533
  amount: formatNumber(limit, { locale })
25426
25534
  }) : t3("No limit")
@@ -25622,11 +25730,11 @@ var MeteredFeatures = (0, import_react46.forwardRef)(({ className, ...rest }, re
25622
25730
  formatNumber(limit, { locale }),
25623
25731
  " "
25624
25732
  ] }),
25625
- getFeatureName(feature, limit)
25733
+ getFeatureName(feature, locale, limit)
25626
25734
  ] }) : typeof usage === "number" && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
25627
25735
  formatNumber(usage, { locale }),
25628
25736
  " ",
25629
- getFeatureName(feature, usage),
25737
+ getFeatureName(feature, locale, usage),
25630
25738
  " ",
25631
25739
  t3("used")
25632
25740
  ] }) }) }),
@@ -25715,6 +25823,7 @@ var MeteredFeatures = (0, import_react46.forwardRef)(({ className, ...rest }, re
25715
25823
  }),
25716
25824
  units: getFeatureName(
25717
25825
  credit,
25826
+ locale,
25718
25827
  credit.total.remaining
25719
25828
  )
25720
25829
  }) }) }),
@@ -25756,6 +25865,7 @@ var MeteredFeatures = (0, import_react46.forwardRef)(({ className, ...rest }, re
25756
25865
  quantity: licenseQuantity,
25757
25866
  licenseName: getFeatureName(
25758
25867
  licenseFeature,
25868
+ locale,
25759
25869
  licenseQuantity
25760
25870
  ),
25761
25871
  perUnit: perLicenseGrant.amount
@@ -25780,7 +25890,7 @@ var MeteredFeatures = (0, import_react46.forwardRef)(({ className, ...rest }, re
25780
25890
  children: [
25781
25891
  t3("Your plan includes credits", {
25782
25892
  total,
25783
- creditName: getFeatureName(credit, total),
25893
+ creditName: getFeatureName(credit, locale, total),
25784
25894
  period: shortenPeriod(composition.period, t3),
25785
25895
  composition: ` \u2014 ${parts.join(" + ")}`
25786
25896
  }),
@@ -25815,6 +25925,7 @@ var MeteredFeatures = (0, import_react46.forwardRef)(({ className, ...rest }, re
25815
25925
  amount: grant.quantity,
25816
25926
  item: getFeatureName(
25817
25927
  credit,
25928
+ locale,
25818
25929
  grant.quantity
25819
25930
  )
25820
25931
  }) }) }),
@@ -25836,7 +25947,7 @@ var MeteredFeatures = (0, import_react46.forwardRef)(({ className, ...rest }, re
25836
25947
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
25837
25948
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Box, { $display: "table-cell", $padding: padding, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text, { children: grant.grantReason === BillingCreditGrantReason.Purchased ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: t3("X item bundle", {
25838
25949
  amount: grant.quantity,
25839
- item: getFeatureName(credit, 1),
25950
+ item: getFeatureName(credit, locale, 1),
25840
25951
  createdAt: toPrettyDate(
25841
25952
  grant.createdAt,
25842
25953
  { locale, month: "short" }
@@ -25845,6 +25956,7 @@ var MeteredFeatures = (0, import_react46.forwardRef)(({ className, ...rest }, re
25845
25956
  amount: grant.quantity,
25846
25957
  item: getFeatureName(
25847
25958
  credit,
25959
+ locale,
25848
25960
  grant.quantity
25849
25961
  ),
25850
25962
  createdAt: toPrettyDate(
@@ -25855,6 +25967,7 @@ var MeteredFeatures = (0, import_react46.forwardRef)(({ className, ...rest }, re
25855
25967
  amount: grant.quantity,
25856
25968
  item: getFeatureName(
25857
25969
  credit,
25970
+ locale,
25858
25971
  grant.quantity
25859
25972
  ),
25860
25973
  createdAt: toPrettyDate(
@@ -26235,7 +26348,7 @@ PaymentMethod.displayName = "PaymentMethod";
26235
26348
  // src/components/elements/payment-method/PaymentMethodDetails.tsx
26236
26349
  var import_react_stripe_js2 = require("@stripe/react-stripe-js");
26237
26350
 
26238
- // node_modules/.pnpm/@stripe+stripe-js@9.16.0/node_modules/@stripe/stripe-js/dist/index.mjs
26351
+ // node_modules/.pnpm/@stripe+stripe-js@9.17.0/node_modules/@stripe/stripe-js/dist/index.mjs
26239
26352
  function _typeof(obj) {
26240
26353
  "@babel/helpers - typeof";
26241
26354
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
@@ -26289,7 +26402,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
26289
26402
  }
26290
26403
  stripe._registerWrapper({
26291
26404
  name: "stripe-js",
26292
- version: "9.16.0",
26405
+ version: "9.17.0",
26293
26406
  startTime
26294
26407
  });
26295
26408
  };
@@ -26367,7 +26480,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
26367
26480
  var version = runtimeVersionToUrlVersion(maybeStripe.version);
26368
26481
  var expectedVersion = RELEASE_TRAIN;
26369
26482
  if (isTestKey && version !== expectedVersion) {
26370
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.16.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
26483
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.17.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
26371
26484
  }
26372
26485
  var stripe = maybeStripe.apply(void 0, args);
26373
26486
  registerWrapper(stripe, startTime);
@@ -26822,7 +26935,7 @@ var UsageDetails2 = ({
26822
26935
  packageSize,
26823
26936
  " "
26824
26937
  ] }),
26825
- getFeatureName(entitlement.feature, packageSize),
26938
+ getFeatureName(entitlement.feature, locale, packageSize),
26826
26939
  entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
26827
26940
  "/",
26828
26941
  shortenPeriod(period, t3)
@@ -26842,6 +26955,7 @@ var UsageDetails2 = ({
26842
26955
  " ",
26843
26956
  getFeatureName(
26844
26957
  entitlement.planEntitlement.valueCredit,
26958
+ locale,
26845
26959
  entitlement.planEntitlement.consumptionRate
26846
26960
  ),
26847
26961
  " ",
@@ -26877,7 +26991,7 @@ var UsageDetails2 = ({
26877
26991
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Text, { display: layout.addOns.fontStyle, children: typeof quantity === "number" ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
26878
26992
  quantity,
26879
26993
  " ",
26880
- getFeatureName(entitlement.feature, quantity, true)
26994
+ getFeatureName(entitlement.feature, locale, quantity, true)
26881
26995
  ] }) : entitlement.feature.name }),
26882
26996
  /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { children: [
26883
26997
  description.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
@@ -27338,9 +27452,14 @@ var PlanManager = (0, import_react51.forwardRef)(({ children, className, portal,
27338
27452
  amount: perLicenseGrant.amount,
27339
27453
  creditName: getFeatureName(
27340
27454
  group,
27455
+ locale,
27341
27456
  perLicenseGrant.amount
27342
27457
  ),
27343
- licenseName: getFeatureName(licenseFeature, 1)
27458
+ licenseName: getFeatureName(
27459
+ licenseFeature,
27460
+ locale,
27461
+ 1
27462
+ )
27344
27463
  }),
27345
27464
  composition.fixedQuantity > 0 && creditPeriod && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27346
27465
  " ",
@@ -27348,6 +27467,7 @@ var PlanManager = (0, import_react51.forwardRef)(({ children, className, portal,
27348
27467
  amount: composition.fixedQuantity,
27349
27468
  creditName: getFeatureName(
27350
27469
  group,
27470
+ locale,
27351
27471
  composition.fixedQuantity
27352
27472
  ),
27353
27473
  period: t3(
@@ -27358,7 +27478,7 @@ var PlanManager = (0, import_react51.forwardRef)(({ children, className, portal,
27358
27478
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27359
27479
  group.total.value,
27360
27480
  " ",
27361
- getFeatureName(group, group.total.value),
27481
+ getFeatureName(group, locale, group.total.value),
27362
27482
  " ",
27363
27483
  subscriptionInterval && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27364
27484
  t3("per"),
@@ -27401,6 +27521,7 @@ var PlanManager = (0, import_react51.forwardRef)(({ children, className, portal,
27401
27521
  quantity: licenseQuantity,
27402
27522
  licenseName: getFeatureName(
27403
27523
  licenseFeature,
27524
+ locale,
27404
27525
  licenseQuantity
27405
27526
  ),
27406
27527
  perUnit: perLicenseGrant.amount,
@@ -27408,6 +27529,7 @@ var PlanManager = (0, import_react51.forwardRef)(({ children, className, portal,
27408
27529
  total: resolvedTotal,
27409
27530
  creditName: getFeatureName(
27410
27531
  group,
27532
+ locale,
27411
27533
  resolvedTotal
27412
27534
  ),
27413
27535
  period: shortenPeriod(creditPeriod, t3)
@@ -27415,12 +27537,14 @@ var PlanManager = (0, import_react51.forwardRef)(({ children, className, portal,
27415
27537
  quantity: licenseQuantity,
27416
27538
  licenseName: getFeatureName(
27417
27539
  licenseFeature,
27540
+ locale,
27418
27541
  licenseQuantity
27419
27542
  ),
27420
27543
  perUnit: perLicenseGrant.amount,
27421
27544
  total: resolvedTotal,
27422
27545
  creditName: getFeatureName(
27423
27546
  group,
27547
+ locale,
27424
27548
  resolvedTotal
27425
27549
  ),
27426
27550
  period: shortenPeriod(creditPeriod, t3)
@@ -27462,7 +27586,7 @@ var PlanManager = (0, import_react51.forwardRef)(({ children, className, portal,
27462
27586
  if (!autoTopupEnabled) {
27463
27587
  acc.push(
27464
27588
  /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Text, { $leading: "tight", children: t3("Auto top-up disabled for token", {
27465
- unit: getFeatureName(grant.credit, 1)
27589
+ unit: getFeatureName(grant.credit, locale, 1)
27466
27590
  }) }, grant.id)
27467
27591
  );
27468
27592
  return acc;
@@ -27474,6 +27598,7 @@ var PlanManager = (0, import_react51.forwardRef)(({ children, className, portal,
27474
27598
  /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Text, { $leading: "tight", children: t3("Adds X tokens when Y remaining in balance", {
27475
27599
  unit: getFeatureName(
27476
27600
  grant.credit,
27601
+ locale,
27477
27602
  autoTopupAmount
27478
27603
  ),
27479
27604
  amount: autoTopupAmount,
@@ -27533,7 +27658,7 @@ var PlanManager = (0, import_react51.forwardRef)(({ children, className, portal,
27533
27658
  " (",
27534
27659
  group.quantity,
27535
27660
  " ",
27536
- getFeatureName(group, group.quantity),
27661
+ getFeatureName(group, locale, group.quantity),
27537
27662
  ")"
27538
27663
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27539
27664
  group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Text, { style: { opacity: 0.5 }, children: [
@@ -27544,7 +27669,7 @@ var PlanManager = (0, import_react51.forwardRef)(({ children, className, portal,
27544
27669
  ] }),
27545
27670
  group.quantity,
27546
27671
  " ",
27547
- getFeatureName(group, group.quantity)
27672
+ getFeatureName(group, locale, group.quantity)
27548
27673
  ] }),
27549
27674
  group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27550
27675
  Text,
@@ -27604,12 +27729,12 @@ var PlanManager = (0, import_react51.forwardRef)(({ children, className, portal,
27604
27729
  " (",
27605
27730
  group.quantity,
27606
27731
  " ",
27607
- getFeatureName(group, group.quantity),
27732
+ getFeatureName(group, locale, group.quantity),
27608
27733
  ")"
27609
27734
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27610
27735
  group.quantity,
27611
27736
  " ",
27612
- getFeatureName(group, group.quantity)
27737
+ getFeatureName(group, locale, group.quantity)
27613
27738
  ] }),
27614
27739
  group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27615
27740
  Text,
@@ -27660,7 +27785,7 @@ var PlanManager = (0, import_react51.forwardRef)(({ children, className, portal,
27660
27785
  /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27661
27786
  group.quantity,
27662
27787
  " ",
27663
- getFeatureName(group, group.quantity)
27788
+ getFeatureName(group, locale, group.quantity)
27664
27789
  ] }),
27665
27790
  group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27666
27791
  Text,
@@ -27733,6 +27858,7 @@ function renderMeteredEntitlementPricing2({
27733
27858
  "/",
27734
27859
  feature ? getFeatureName(
27735
27860
  feature,
27861
+ locale,
27736
27862
  packageSize
27737
27863
  ) : featureName || "unit"
27738
27864
  ] });
@@ -27750,6 +27876,7 @@ function renderMeteredEntitlementPricing2({
27750
27876
  ] }),
27751
27877
  feature ? getFeatureName(
27752
27878
  feature,
27879
+ locale,
27753
27880
  packageSize
27754
27881
  ) : featureName || "unit"
27755
27882
  ] });
@@ -27939,7 +28066,7 @@ var AddOn2 = ({
27939
28066
  {
27940
28067
  $flexDirection: "column",
27941
28068
  $justifyContent: "center",
27942
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { children: getFeatureName(entitlement.feature) })
28069
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { children: getFeatureName(entitlement.feature, locale) })
27943
28070
  }
27944
28071
  )
27945
28072
  ] }),
@@ -28101,7 +28228,11 @@ var Entitlement2 = ({
28101
28228
  formatNumber(entitlementPackageSize, { locale }),
28102
28229
  " "
28103
28230
  ] }),
28104
- getFeatureName(entitlement.feature, entitlementPackageSize),
28231
+ getFeatureName(
28232
+ entitlement.feature,
28233
+ locale,
28234
+ entitlementPackageSize
28235
+ ),
28105
28236
  entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
28106
28237
  " ",
28107
28238
  t3("per"),
@@ -28119,12 +28250,13 @@ var Entitlement2 = ({
28119
28250
  " ",
28120
28251
  getFeatureName(
28121
28252
  entitlement.valueCredit,
28253
+ locale,
28122
28254
  entitlement.consumptionRate
28123
28255
  ),
28124
28256
  " ",
28125
28257
  t3("per"),
28126
28258
  " ",
28127
- getFeatureName(entitlement.feature, 1)
28259
+ getFeatureName(entitlement.feature, locale, 1)
28128
28260
  ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: creditBasedEntitlementLimit?.period ? t3("Up to X units per period", {
28129
28261
  amount: formatNumber(
28130
28262
  creditBasedEntitlementLimit.limit,
@@ -28132,9 +28264,12 @@ var Entitlement2 = ({
28132
28264
  ),
28133
28265
  units: getFeatureName(
28134
28266
  entitlement.feature,
28267
+ locale,
28135
28268
  creditBasedEntitlementLimit.limit
28136
28269
  ),
28137
- period: creditBasedEntitlementLimit.period
28270
+ period: t3(
28271
+ creditBasedEntitlementLimit.period
28272
+ )
28138
28273
  }) : t3("Up to X units", {
28139
28274
  amount: formatNumber(
28140
28275
  creditBasedEntitlementLimit.limit,
@@ -28142,17 +28277,18 @@ var Entitlement2 = ({
28142
28277
  ),
28143
28278
  units: getFeatureName(
28144
28279
  entitlement.feature,
28280
+ locale,
28145
28281
  creditBasedEntitlementLimit.limit
28146
28282
  )
28147
28283
  }) }) : entitlement.valueType === EntitlementValueType.Numeric || entitlement.valueType === EntitlementValueType.Unlimited || entitlement.valueType === EntitlementValueType.Trait ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
28148
28284
  entitlement.valueType === EntitlementValueType.Unlimited && !entitlement.priceBehavior ? t3("Unlimited", {
28149
- item: getFeatureName(entitlement.feature)
28285
+ item: getFeatureName(entitlement.feature, locale)
28150
28286
  }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
28151
28287
  typeof limit === "number" && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
28152
28288
  formatNumber(limit, { locale }),
28153
28289
  " "
28154
28290
  ] }),
28155
- getFeatureName(entitlement.feature, limit)
28291
+ getFeatureName(entitlement.feature, locale, limit)
28156
28292
  ] }),
28157
28293
  metricPeriodName && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
28158
28294
  " ",
@@ -28181,6 +28317,7 @@ var Entitlement2 = ({
28181
28317
  ] }),
28182
28318
  getFeatureName(
28183
28319
  entitlement.feature,
28320
+ locale,
28184
28321
  entitlementPackageSize
28185
28322
  ),
28186
28323
  entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
@@ -28660,7 +28797,7 @@ var PricingTable = (0, import_react54.forwardRef)(({ className, ...rest }, ref)
28660
28797
  $alignItems: "center",
28661
28798
  $justifyContent: "center",
28662
28799
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
28663
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Loader, { "aria-label": "loading", $size: "2xl" })
28800
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Loader, { "aria-label": t3("Loading"), $size: "2xl" })
28664
28801
  }
28665
28802
  );
28666
28803
  }
@@ -31877,6 +32014,7 @@ var Loading = () => {
31877
32014
  };
31878
32015
  var Error2 = ({ message }) => {
31879
32016
  const { settings } = useEmbed();
32017
+ const { t: t3 } = useTranslation();
31880
32018
  return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
31881
32019
  Flex,
31882
32020
  {
@@ -31888,7 +32026,7 @@ var Error2 = ({ message }) => {
31888
32026
  $alignItems: "center",
31889
32027
  $justifyContent: "center",
31890
32028
  children: [
31891
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Text, { display: "heading1", children: "Error" }) }),
32029
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Text, { display: "heading1", children: t3("Error") }) }),
31892
32030
  /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Text, { children: message }) })
31893
32031
  ]
31894
32032
  }
@@ -31896,6 +32034,7 @@ var Error2 = ({ message }) => {
31896
32034
  };
31897
32035
  var SchematicEmbed = ({ id, accessToken }) => {
31898
32036
  const theme = (0, import_react59.useContext)(nt);
32037
+ const { t: t3 } = useTranslation();
31899
32038
  const {
31900
32039
  data,
31901
32040
  error,
@@ -31966,13 +32105,15 @@ var SchematicEmbed = ({ id, accessToken }) => {
31966
32105
  return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Error2, { message: error.message });
31967
32106
  }
31968
32107
  if (accessToken?.length === 0) {
31969
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Error2, { message: "Please provide an access token." });
32108
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Error2, { message: t3("Please provide an access token.") });
31970
32109
  }
31971
32110
  if (!accessToken?.startsWith("token_")) {
31972
32111
  return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
31973
32112
  Error2,
31974
32113
  {
31975
- message: 'Invalid access token; your temporary access token will start with "token_".'
32114
+ message: t3(
32115
+ "Invalid access token; your temporary access token will start with `token_`."
32116
+ )
31976
32117
  }
31977
32118
  );
31978
32119
  }