@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.
@@ -3796,6 +3796,7 @@ var initialContext = {
3796
3796
  hydrate: stub,
3797
3797
  hydrateComponent: stub,
3798
3798
  hydrateExternal: stub,
3799
+ rehydrateWithParams: stub,
3799
3800
  getUpcomingInvoice: stub,
3800
3801
  getCustomerBalance: stub,
3801
3802
  listInvoices: stub,
@@ -7923,7 +7924,8 @@ function HydrateComponentParamsFromJSONTyped(json, ignoreDiscriminator) {
7923
7924
  return json;
7924
7925
  }
7925
7926
  return {
7926
- catalogId: json["catalog_id"] == null ? void 0 : json["catalog_id"]
7927
+ catalogId: json["catalog_id"] == null ? void 0 : json["catalog_id"],
7928
+ includeAddOnIds: json["include_add_on_ids"] == null ? void 0 : json["include_add_on_ids"]
7927
7929
  };
7928
7930
  }
7929
7931
 
@@ -8955,6 +8957,9 @@ var CheckoutexternalApi = class extends BaseAPI {
8955
8957
  if (requestParameters["catalogId"] != null) {
8956
8958
  queryParameters["catalog_id"] = requestParameters["catalogId"];
8957
8959
  }
8960
+ if (requestParameters["includeAddOnIds"] != null) {
8961
+ queryParameters["include_add_on_ids"] = requestParameters["includeAddOnIds"];
8962
+ }
8958
8963
  const headerParameters = {};
8959
8964
  if (this.configuration && this.configuration.apiKey) {
8960
8965
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
@@ -13574,6 +13579,7 @@ var en = {
13574
13579
  "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.",
13575
13580
  "An unknown error occurred.": "An unknown error occurred.",
13576
13581
  "Billed": "Billed {{period}}",
13582
+ "Billing threshold": "Billing threshold",
13577
13583
  "Bundle selected": "Bundle selected",
13578
13584
  "Buy credits": "Buy credits",
13579
13585
  "Cancel": "Cancel",
@@ -13608,8 +13614,11 @@ var en = {
13608
13614
  "Due today": "Due today",
13609
13615
  "Edit payment details": "Edit payment details",
13610
13616
  "Edit": "Edit",
13617
+ "Email": "Email",
13611
13618
  "Ends on": "Ends on {{date}}",
13612
13619
  "Enter discount code": "Enter discount code",
13620
+ "Enter email address": "Enter email address",
13621
+ "Error": "Error",
13613
13622
  "Error initializing payment method change. Please try again.": "Error initializing payment method change. Please try again.",
13614
13623
  "Error processing payment. Please try a different payment method.": "Error processing payment. Please try a different payment method.",
13615
13624
  "Error retrieving plan details. Please try again in a moment.": "Error retrieving plan details. Please try again in a moment.",
@@ -13630,6 +13639,7 @@ var en = {
13630
13639
  "Invoice credit tooltip": "Credit \u2014 this amount was returned to your account, typically due to a plan change or proration",
13631
13640
  "Invoice charge tooltip": "Charge \u2014 you were billed this amount",
13632
13641
  "Invoices": "Invoices",
13642
+ "Limit": "Limit",
13633
13643
  "Limit of": "Limit of {{amount}}",
13634
13644
  "Loading": "Loading",
13635
13645
  "Manage plan": "Manage plan",
@@ -13654,6 +13664,8 @@ var en = {
13654
13664
  "Payment Details": "Payment Details",
13655
13665
  "Plan selected": "Plan selected",
13656
13666
  "Please accept the agreement to continue.": "Please accept the agreement to continue.",
13667
+ "Please try again later.": "Please try again later.",
13668
+ "Portal not found": "Portal not found",
13657
13669
  "Plan": "Plan",
13658
13670
  "Plans": "Plans",
13659
13671
  "Please provide an access token.": "Please provide an access token.",
@@ -13705,6 +13717,7 @@ var en = {
13705
13717
  "There was a problem retrieving your upcoming invoice.": "There was a problem retrieving your upcoming invoice.",
13706
13718
  "There was a problem retrieving your invoices.": "There was a problem retrieving your invoices.",
13707
13719
  "Tier-based": "Tier-based",
13720
+ "Tiered pricing": "Tiered pricing",
13708
13721
  "Tiers apply progressively as quantity increases.": "Tiers apply progressively as quantity increases.",
13709
13722
  "Top up balance with:": "Top up balance with:",
13710
13723
  "Top-ups": "Top-ups",
@@ -13778,6 +13791,15 @@ var en = {
13778
13791
  "$X/unit/period": "{{cost}}/{{unit}}/{{period}}",
13779
13792
  "$X/Y units/period": "{{cost}}/{{size}} {{units}}/{{period}}",
13780
13793
  "day": "day",
13794
+ "day_one": "day",
13795
+ "day_other": "days",
13796
+ "hour_one": "hour",
13797
+ "hour_other": "hours",
13798
+ "minute_one": "minute",
13799
+ "minute_other": "minutes",
13800
+ "second_one": "second",
13801
+ "second_other": "seconds",
13802
+ "week": "week",
13781
13803
  "month": "month",
13782
13804
  "quarter": "quarter",
13783
13805
  "year": "year",
@@ -13786,6 +13808,13 @@ var en = {
13786
13808
  "yr": "yr",
13787
13809
  "one time": "one time",
13788
13810
  "billing period": "billing period",
13811
+ "billing period_one": "billing period",
13812
+ "billing period_other": "billing periods",
13813
+ "daily": "daily",
13814
+ "weekly": "weekly",
13815
+ "monthly": "monthly",
13816
+ "quarterly": "quarterly",
13817
+ "yearly": "yearly",
13789
13818
  "expires after purchase": "expires {{amount}} {{unit}} after purchase",
13790
13819
  "expires at the end of the billing period": "expires at the end of the billing period",
13791
13820
  "expires at the end of the next billing period": "expires at the end of the next billing period",
@@ -14475,11 +14504,9 @@ function formatBundleExpiry(bundle, t2) {
14475
14504
  if (typeof bundle.expiryUnitCount !== "number") {
14476
14505
  return void 0;
14477
14506
  }
14478
- const unit = bundle.expiryUnit === BillingCreditExpiryUnit.BillingPeriods ? t2("billing period") : t2("day");
14479
- return t2("expires after purchase", {
14480
- amount: bundle.expiryUnitCount,
14481
- unit: pluralize(unit, bundle.expiryUnitCount)
14482
- });
14507
+ const count = bundle.expiryUnitCount;
14508
+ const unit = bundle.expiryUnit === BillingCreditExpiryUnit.BillingPeriods ? t2("billing period", { count }) : t2("day", { count });
14509
+ return t2("expires after purchase", { amount: count, unit });
14483
14510
  }
14484
14511
  case BillingCreditExpiryType.EndOfBillingPeriod:
14485
14512
  return t2("expires at the end of the billing period");
@@ -14724,16 +14751,33 @@ function entitlementHasHardLimit(entitlement) {
14724
14751
  }
14725
14752
 
14726
14753
  // src/utils/api/feature.ts
14727
- function getFeatureName(feature, count = 0, ignore = false) {
14728
- const shouldBePlural = count === 0 || count > 1;
14754
+ function isEnglish(locale) {
14755
+ try {
14756
+ return new Intl.Locale(locale).language === "en";
14757
+ } catch {
14758
+ return true;
14759
+ }
14760
+ }
14761
+ function isOne(count, locale) {
14762
+ return new Intl.PluralRules(locale).select(count) === "one";
14763
+ }
14764
+ function getFeatureName(feature, locale, count, ignore = false) {
14765
+ if (!isEnglish(locale)) {
14766
+ const named = ignore ? { name: feature.name } : feature;
14767
+ const singularName2 = named.singularName || named.name;
14768
+ const pluralName2 = named.pluralName || singularName2;
14769
+ return count !== void 0 && isOne(count, locale) ? singularName2 : pluralName2;
14770
+ }
14771
+ const resolvedCount = count ?? 0;
14772
+ const shouldBePlural = resolvedCount === 0 || resolvedCount > 1;
14729
14773
  const { name, singularName, pluralName } = feature;
14730
14774
  if (!ignore && pluralName && shouldBePlural) {
14731
14775
  return pluralName;
14732
14776
  }
14733
14777
  if (!ignore && singularName) {
14734
- return shouldBePlural ? pluralize(singularName, count) : singularName;
14778
+ return shouldBePlural ? pluralize(singularName, resolvedCount) : singularName;
14735
14779
  }
14736
- return pluralize(name, count);
14780
+ return pluralize(name, resolvedCount);
14737
14781
  }
14738
14782
 
14739
14783
  // src/utils/color.ts
@@ -14943,8 +14987,21 @@ function formatCurrency(amount, {
14943
14987
  function formatOrdinal(n, t2) {
14944
14988
  return t2("Ordinal", { count: n, ordinal: true });
14945
14989
  }
14946
- function adjectify(str) {
14947
- return `${str}ly`;
14990
+ function adjectify(period, t2) {
14991
+ switch (period) {
14992
+ case "day":
14993
+ return t2("daily");
14994
+ case "week":
14995
+ return t2("weekly");
14996
+ case "month":
14997
+ return t2("monthly");
14998
+ case "quarter":
14999
+ return t2("quarterly");
15000
+ case "year":
15001
+ return t2("yearly");
15002
+ default:
15003
+ return period;
15004
+ }
14948
15005
  }
14949
15006
  var CURRENCY_FLAGS = {
14950
15007
  usd: "\u{1F1FA}\u{1F1F8}",
@@ -15060,11 +15117,12 @@ function getBillingPreviewText({
15060
15117
  );
15061
15118
  }
15062
15119
  const schedule = scheduleParts.length > 0 ? `${scheduleParts.join(" ")} ` : "";
15120
+ const period = t2(planPeriod);
15063
15121
  if (!discount) {
15064
15122
  return t2("You will be billed", {
15065
15123
  price: subscriptionPrice,
15066
15124
  usage,
15067
- period: planPeriod,
15125
+ period,
15068
15126
  schedule
15069
15127
  });
15070
15128
  }
@@ -15073,7 +15131,7 @@ function getBillingPreviewText({
15073
15131
  return t2("You will be billed", {
15074
15132
  price: discountedPrice,
15075
15133
  usage,
15076
- period: planPeriod,
15134
+ period,
15077
15135
  schedule
15078
15136
  });
15079
15137
  }
@@ -15081,7 +15139,7 @@ function getBillingPreviewText({
15081
15139
  return t2("You will be billed with discount window", {
15082
15140
  price: discountedPrice,
15083
15141
  usage,
15084
- period: planPeriod,
15142
+ period,
15085
15143
  schedule,
15086
15144
  window: t2("for the next months", { count: durationInMonths }),
15087
15145
  fullPrice: subscriptionPrice
@@ -15090,7 +15148,7 @@ function getBillingPreviewText({
15090
15148
  return t2("You will be billed next bill discount", {
15091
15149
  price: discountedPrice,
15092
15150
  usage,
15093
- period: planPeriod,
15151
+ period,
15094
15152
  schedule,
15095
15153
  fullPrice: subscriptionPrice
15096
15154
  });
@@ -15866,7 +15924,7 @@ var reducer = (state, action) => {
15866
15924
  // src/context/EmbedProvider.tsx
15867
15925
  var import_jsx_runtime4 = require("react/jsx-runtime");
15868
15926
  var getCustomHeaders = (sessionId) => ({
15869
- "X-Schematic-Components-Version": "2.27.1",
15927
+ "X-Schematic-Components-Version": "2.29.0",
15870
15928
  "X-Schematic-Session-ID": sessionId
15871
15929
  });
15872
15930
  var normalizeCurrencyFilter = (filter) => {
@@ -16064,6 +16122,34 @@ var EmbedProvider = ({
16064
16122
  ),
16065
16123
  [hydrateExternal]
16066
16124
  );
16125
+ const rehydrateWithParams = (0, import_react4.useCallback)(
16126
+ async (params) => {
16127
+ const componentId = state.data?.component?.id;
16128
+ if (!componentId || !checkoutApi) {
16129
+ throw new Error(
16130
+ "[Schematic] `rehydrateWithParams` needs a `SchematicEmbed` that has loaded."
16131
+ );
16132
+ }
16133
+ const response = await checkoutApi.hydrateComponent({
16134
+ componentId,
16135
+ includeAddOnIds: params.includeAddOnIds
16136
+ });
16137
+ const returnedIds = new Set(
16138
+ response.data.activeAddOns.map((addOn) => addOn.id)
16139
+ );
16140
+ const missingIds = (params.includeAddOnIds ?? []).filter(
16141
+ (id) => !returnedIds.has(id)
16142
+ );
16143
+ if (missingIds.length > 0) {
16144
+ console.warn(
16145
+ `[Schematic] These included add-ons were left out because each must be an add-on with a billing product: ${missingIds.join(", ")}`
16146
+ );
16147
+ }
16148
+ dispatch({ type: "HYDRATE_COMPONENT", data: response.data });
16149
+ return response.data;
16150
+ },
16151
+ [checkoutApi, state.data?.component?.id]
16152
+ );
16067
16153
  const createSetupIntent = (0, import_react4.useCallback)(async () => {
16068
16154
  return checkoutApi?.createSetupIntent();
16069
16155
  }, [checkoutApi]);
@@ -16407,6 +16493,7 @@ var EmbedProvider = ({
16407
16493
  hydrate: debouncedHydrate,
16408
16494
  hydrateComponent: debouncedHydrateComponent,
16409
16495
  hydrateExternal: debouncedHydrateExternal,
16496
+ rehydrateWithParams,
16410
16497
  createSetupIntent: debouncedCreateSetupIntent,
16411
16498
  updatePaymentMethod: debouncedUpdatePaymentMethod,
16412
16499
  deletePaymentMethod: debouncedDeletePaymentMethod,
@@ -16761,6 +16848,7 @@ function useRequest(fn) {
16761
16848
  var import_react12 = require("react");
16762
16849
  function useTrialEnd() {
16763
16850
  const { data } = useEmbed();
16851
+ const { t: t2 } = useTranslation();
16764
16852
  const { endDate, amount, units } = (0, import_react12.useMemo)(() => {
16765
16853
  const billingSubscription = data?.company?.billingSubscription;
16766
16854
  const end = typeof billingSubscription?.trialEnd === "number" ? new Date(billingSubscription.trialEnd * 1e3) : void 0;
@@ -16783,10 +16871,10 @@ function useTrialEnd() {
16783
16871
  amount2 = Math.floor(difference / SECONDS_IN_MS);
16784
16872
  unit = "second";
16785
16873
  }
16786
- units2 = pluralize(unit, amount2);
16874
+ units2 = t2(unit, { count: amount2 });
16787
16875
  }
16788
16876
  return { endDate: end, amount: amount2, units: units2 };
16789
- }, [data?.company?.billingSubscription]);
16877
+ }, [data?.company?.billingSubscription, t2]);
16790
16878
  return { endDate, amount, units };
16791
16879
  }
16792
16880
 
@@ -18206,7 +18294,7 @@ var AutoTopupNotice = ({
18206
18294
  trigger: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
18207
18295
  Icon3,
18208
18296
  {
18209
- title: "auto top-up",
18297
+ title: t2("Auto Top-up"),
18210
18298
  name: "info-rounded",
18211
18299
  color: `hsla(0, 0%, ${isLightBackground ? 0 : 100}%, 0.5)`,
18212
18300
  style: { lineHeight: 0 }
@@ -18245,7 +18333,7 @@ var BillingThresholdTooltip = ({
18245
18333
  trigger: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
18246
18334
  Icon3,
18247
18335
  {
18248
- title: "billing threshold",
18336
+ title: t2("Billing threshold"),
18249
18337
  name: "info-rounded",
18250
18338
  color: `hsla(0, 0%, ${isLightBackground ? 0 : 100}%, 0.5)`,
18251
18339
  style: { lineHeight: 0 }
@@ -18441,7 +18529,7 @@ var Entitlement = ({
18441
18529
  packageSize,
18442
18530
  " "
18443
18531
  ] }),
18444
- getFeatureName(entitlement.feature, packageSize),
18532
+ getFeatureName(entitlement.feature, locale, packageSize),
18445
18533
  entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
18446
18534
  " ",
18447
18535
  t2("per"),
@@ -18466,12 +18554,13 @@ var Entitlement = ({
18466
18554
  " ",
18467
18555
  getFeatureName(
18468
18556
  entitlement.valueCredit,
18557
+ locale,
18469
18558
  entitlement.consumptionRate || void 0
18470
18559
  ),
18471
18560
  " ",
18472
18561
  t2("per"),
18473
18562
  " ",
18474
- getFeatureName(entitlement.feature, 1)
18563
+ getFeatureName(entitlement.feature, locale, 1)
18475
18564
  ] });
18476
18565
  }
18477
18566
  if (entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit) {
@@ -18479,13 +18568,17 @@ var Entitlement = ({
18479
18568
  amount: creditBasedEntitlementLimit.limit,
18480
18569
  units: getFeatureName(
18481
18570
  entitlement.feature,
18571
+ locale,
18482
18572
  creditBasedEntitlementLimit.limit
18483
18573
  ),
18484
- period: creditBasedEntitlementLimit.period
18574
+ period: t2(
18575
+ creditBasedEntitlementLimit.period
18576
+ )
18485
18577
  }) : t2("Up to X units", {
18486
18578
  amount: creditBasedEntitlementLimit.limit,
18487
18579
  units: getFeatureName(
18488
18580
  entitlement.feature,
18581
+ locale,
18489
18582
  creditBasedEntitlementLimit.limit
18490
18583
  )
18491
18584
  }) });
@@ -18493,11 +18586,11 @@ var Entitlement = ({
18493
18586
  if (hasNumericValue) {
18494
18587
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
18495
18588
  entitlement.valueType === EntitlementValueType.Unlimited && !entitlement.priceBehavior ? t2("Unlimited", {
18496
- item: getFeatureName(entitlement.feature)
18589
+ item: getFeatureName(entitlement.feature, locale)
18497
18590
  }) : typeof limit === "number" && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
18498
18591
  formatNumber(limit, { locale }),
18499
18592
  " ",
18500
- getFeatureName(entitlement.feature, limit)
18593
+ getFeatureName(entitlement.feature, locale, limit)
18501
18594
  ] }),
18502
18595
  metricPeriodName && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
18503
18596
  " ",
@@ -18536,7 +18629,7 @@ var Entitlement = ({
18536
18629
  packageSize,
18537
18630
  " "
18538
18631
  ] }),
18539
- getFeatureName(entitlement.feature, packageSize),
18632
+ getFeatureName(entitlement.feature, locale, packageSize),
18540
18633
  entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
18541
18634
  "/",
18542
18635
  shortenPeriod(period, t2)
@@ -18876,7 +18969,7 @@ var AutoTopup = ({
18876
18969
  updateAutoTopupConfig
18877
18970
  }) => {
18878
18971
  const { settings } = useEmbed();
18879
- const { t: t2 } = useTranslation();
18972
+ const { t: t2, locale } = useTranslation();
18880
18973
  const cardPadding = settings.theme.card.padding / TEXT_BASE_SIZE;
18881
18974
  const configurableCreditGrants = (0, import_react24.useMemo)(() => {
18882
18975
  return planCreditGrants.reduce(
@@ -18923,7 +19016,7 @@ var AutoTopup = ({
18923
19016
  }) }) }),
18924
19017
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Box, { as: "p", $marginBottom: "2rem", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Text, { children: t2(
18925
19018
  "Automatically purchase more credits when your balance is low",
18926
- { units: getFeatureName(grant.credit) }
19019
+ { units: getFeatureName(grant.credit, locale) }
18927
19020
  ) }) })
18928
19021
  ] }),
18929
19022
  /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Flex, { $alignItems: "center", $gap: "0.5rem", $marginBottom: "1rem", children: [
@@ -19120,7 +19213,7 @@ var Quantity = ({
19120
19213
  $color: settings.theme.typography.text.color,
19121
19214
  children: t2("Currently using", {
19122
19215
  quantity: entitlement.usage,
19123
- unit: getFeatureName(entitlement.feature)
19216
+ unit: getFeatureName(entitlement.feature, locale)
19124
19217
  })
19125
19218
  }
19126
19219
  ),
@@ -19185,7 +19278,11 @@ var Quantity = ({
19185
19278
  packageSize,
19186
19279
  " "
19187
19280
  ] }),
19188
- getFeatureName(entitlement.feature, packageSize),
19281
+ getFeatureName(
19282
+ entitlement.feature,
19283
+ locale,
19284
+ packageSize
19285
+ ),
19189
19286
  "/",
19190
19287
  shortenPeriod(period, t2)
19191
19288
  ] })
@@ -19222,12 +19319,14 @@ var Quantity = ({
19222
19319
  quantity: entitlement.quantity,
19223
19320
  licenseName: getFeatureName(
19224
19321
  entitlement.feature,
19322
+ locale,
19225
19323
  entitlement.quantity
19226
19324
  ),
19227
19325
  perUnit: perLicenseGrant.amount,
19228
19326
  total: includedCredits,
19229
19327
  creditName: getFeatureName(
19230
19328
  licenseCredit,
19329
+ locale,
19231
19330
  includedCredits
19232
19331
  ),
19233
19332
  period: shortenPeriod(licenseCredit.period, t2)
@@ -19249,11 +19348,13 @@ var Quantity = ({
19249
19348
  added: addedQuantity,
19250
19349
  licenseName: getFeatureName(
19251
19350
  entitlement.feature,
19351
+ locale,
19252
19352
  addedQuantity
19253
19353
  ),
19254
19354
  credits: addedCredits,
19255
19355
  creditName: getFeatureName(
19256
19356
  licenseCredit,
19357
+ locale,
19257
19358
  addedCredits
19258
19359
  )
19259
19360
  }),
@@ -19263,9 +19364,10 @@ var Quantity = ({
19263
19364
  total: includedCredits,
19264
19365
  creditName: getFeatureName(
19265
19366
  licenseCredit,
19367
+ locale,
19266
19368
  includedCredits
19267
19369
  ),
19268
- cadence: adjectify(licenseCredit.period),
19370
+ cadence: adjectify(licenseCredit.period, t2),
19269
19371
  day: formatOrdinal(renewalDate.getDate(), t2)
19270
19372
  })
19271
19373
  ] })
@@ -19304,6 +19406,7 @@ function renderMeteredEntitlementPricing({
19304
19406
  "/",
19305
19407
  feature ? getFeatureName(
19306
19408
  feature,
19409
+ locale,
19307
19410
  packageSize
19308
19411
  ) : featureName || "unit"
19309
19412
  ] });
@@ -19321,6 +19424,7 @@ function renderMeteredEntitlementPricing({
19321
19424
  ] }),
19322
19425
  feature ? getFeatureName(
19323
19426
  feature,
19427
+ locale,
19324
19428
  packageSize
19325
19429
  ) : featureName || "unit"
19326
19430
  ] });
@@ -19638,7 +19742,7 @@ var Credits = ({
19638
19742
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { display: "heading6", children: [
19639
19743
  formatNumber(bundle.quantity ?? 0, { locale }),
19640
19744
  " ",
19641
- getFeatureName(bundle)
19745
+ getFeatureName(bundle, locale)
19642
19746
  ] }) })
19643
19747
  ] }),
19644
19748
  typeof price === "number" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { children: formatCurrency(price, {
@@ -21592,7 +21696,7 @@ var CurrencyPeriodMismatchNotice = ({
21592
21696
  style: { opacity: 0.85, textAlign: "center" },
21593
21697
  children: t2("No {{currency}} price for the {{period}} billing period.", {
21594
21698
  currency: currency.toUpperCase(),
21595
- period
21699
+ period: adjectify(period, t2)
21596
21700
  })
21597
21701
  }
21598
21702
  )
@@ -21754,7 +21858,7 @@ var HardLimitTooltip = ({
21754
21858
  feature,
21755
21859
  limit
21756
21860
  }) => {
21757
- const { t: t2 } = useTranslation();
21861
+ const { t: t2, locale } = useTranslation();
21758
21862
  const { data } = useEmbed();
21759
21863
  const isLightBackground = useIsLightBackground();
21760
21864
  const showHardLimit = data?.displaySettings?.showHardLimit ?? false;
@@ -21768,7 +21872,7 @@ var HardLimitTooltip = ({
21768
21872
  trigger: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
21769
21873
  Icon3,
21770
21874
  {
21771
- title: "limit",
21875
+ title: t2("Limit"),
21772
21876
  name: "info-rounded",
21773
21877
  color: `hsla(0, 0%, ${isLightBackground ? 0 : 100}%, 0.5)`,
21774
21878
  style: { lineHeight: 0 }
@@ -21776,7 +21880,7 @@ var HardLimitTooltip = ({
21776
21880
  ),
21777
21881
  content: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Text, { children: t2("Up to a limit of", {
21778
21882
  amount: limit,
21779
- units: getFeatureName(feature, limit)
21883
+ units: getFeatureName(feature, locale, limit)
21780
21884
  }) })
21781
21885
  }
21782
21886
  );
@@ -22140,7 +22244,7 @@ var PaymentForm = ({ onConfirm, financeData }) => {
22140
22244
  )
22141
22245
  ] }),
22142
22246
  stripe && collectEmail && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Box, { "data-field": "name", $marginBottom: "1.5rem", $verticalAlign: "top", children: [
22143
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Label, { htmlFor: "email", children: "Email" }),
22247
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Label, { htmlFor: "email", children: t2("Email") }),
22144
22248
  /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
22145
22249
  Input2,
22146
22250
  {
@@ -22149,7 +22253,7 @@ var PaymentForm = ({ onConfirm, financeData }) => {
22149
22253
  type: "email",
22150
22254
  value: email,
22151
22255
  autoComplete: "email",
22152
- placeholder: "Enter email address",
22256
+ placeholder: t2("Enter email address"),
22153
22257
  required: true,
22154
22258
  onChange: (e) => {
22155
22259
  userEditedEmailRef.current = true;
@@ -22276,7 +22380,7 @@ var PeriodToggle = ({
22276
22380
  },
22277
22381
  $size: 15,
22278
22382
  $weight: option === selectedOption ? 600 : 400,
22279
- children: t2("Billed", { period: adjectify(option) })
22383
+ children: t2("Billed", { period: adjectify(option, t2) })
22280
22384
  }
22281
22385
  )
22282
22386
  },
@@ -22316,7 +22420,7 @@ var PlanCreditText = ({
22316
22420
  entitlements,
22317
22421
  children
22318
22422
  }) => {
22319
- const { t: t2 } = useTranslation();
22423
+ const { t: t2, locale } = useTranslation();
22320
22424
  const { settings } = useEmbed();
22321
22425
  const sources = entitlements ?? [];
22322
22426
  const { perLicenseGrants } = credit;
@@ -22324,7 +22428,7 @@ var PlanCreditText = ({
22324
22428
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Text, { children: [
22325
22429
  credit.quantity,
22326
22430
  " ",
22327
- getFeatureName(credit, credit.quantity),
22431
+ getFeatureName(credit, locale, credit.quantity),
22328
22432
  credit.period && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
22329
22433
  " ",
22330
22434
  t2("per"),
@@ -22336,18 +22440,18 @@ var PlanCreditText = ({
22336
22440
  }
22337
22441
  const resolveLicenseName = (grant) => {
22338
22442
  const licenseFeature = (findLicenseSource(sources, grant.licenseId) ?? (grant.licenseId ? void 0 : findSoleLicenseSource(sources)))?.feature;
22339
- return licenseFeature ? getFeatureName(licenseFeature, 1) : t2("license");
22443
+ return licenseFeature ? getFeatureName(licenseFeature, locale, 1) : t2("license");
22340
22444
  };
22341
22445
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Flex, { $flexDirection: "column", $gap: "0.25rem", children: [
22342
22446
  perLicenseGrants.map((grant, grantIndex) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Text, { children: [
22343
22447
  credit.period ? t2("X credits per license per period", {
22344
22448
  amount: grant.amount,
22345
- creditName: getFeatureName(credit, grant.amount),
22449
+ creditName: getFeatureName(credit, locale, grant.amount),
22346
22450
  licenseName: resolveLicenseName(grant),
22347
22451
  period: t2(credit.period)
22348
22452
  }) : t2("X credits per license", {
22349
22453
  amount: grant.amount,
22350
- creditName: getFeatureName(credit, grant.amount),
22454
+ creditName: getFeatureName(credit, locale, grant.amount),
22351
22455
  licenseName: resolveLicenseName(grant)
22352
22456
  }),
22353
22457
  grantIndex === 0 && children
@@ -22360,7 +22464,7 @@ var PlanCreditText = ({
22360
22464
  $color: settings.theme.typography.text.color,
22361
22465
  children: t2("Plus X credits per period for your company", {
22362
22466
  amount: credit.fixedQuantity,
22363
- creditName: getFeatureName(credit, credit.fixedQuantity),
22467
+ creditName: getFeatureName(credit, locale, credit.fixedQuantity),
22364
22468
  period: t2(credit.period)
22365
22469
  })
22366
22470
  }
@@ -22389,7 +22493,7 @@ var PriceText = ({
22389
22493
  formatCurrency(perUnitPrice, { locale, currency }),
22390
22494
  /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("sub", { children: [
22391
22495
  "/",
22392
- getFeatureName(feature, 1)
22496
+ getFeatureName(feature, locale, 1)
22393
22497
  ] })
22394
22498
  ] });
22395
22499
  }
@@ -22406,7 +22510,7 @@ var PriceText = ({
22406
22510
  formatCurrency(perUnitPrice, { locale, currency }),
22407
22511
  /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("sub", { children: [
22408
22512
  "/",
22409
- getFeatureName(feature, 1)
22513
+ getFeatureName(feature, locale, 1)
22410
22514
  ] }),
22411
22515
  " + ",
22412
22516
  formatCurrency(flatAmount, { locale, currency }),
@@ -22467,7 +22571,7 @@ var PricingTiersTooltip = ({
22467
22571
  trigger: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
22468
22572
  Icon3,
22469
22573
  {
22470
- title: "tiered pricing",
22574
+ title: t2("Tiered pricing"),
22471
22575
  name: "info-rounded",
22472
22576
  color: `hsla(0, 0%, ${isLightBackground ? 0 : 100}%, 0.5)`,
22473
22577
  style: { lineHeight: 0 }
@@ -22969,11 +23073,11 @@ var EntitlementRow = (props) => {
22969
23073
  /* @__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: [
22970
23074
  quantity,
22971
23075
  " ",
22972
- getFeatureName(feature, quantity)
23076
+ getFeatureName(feature, locale, quantity)
22973
23077
  ] }) : priceBehavior === EntitlementPriceBehavior.Overage && typeof softLimit === "number" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
22974
23078
  softLimit,
22975
23079
  " ",
22976
- getFeatureName(feature, softLimit)
23080
+ getFeatureName(feature, locale, softLimit)
22977
23081
  ] }) : feature.name }) }),
22978
23082
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Box, { $whiteSpace: "nowrap", $lineHeight: 1, children: priceBehavior === EntitlementPriceBehavior.PayInAdvance ? (
22979
23083
  // A tiered scheme still resolves to a fixed amount at the chosen
@@ -23004,7 +23108,7 @@ var EntitlementRow = (props) => {
23004
23108
  packageSize,
23005
23109
  " "
23006
23110
  ] }),
23007
- getFeatureName(feature, packageSize),
23111
+ getFeatureName(feature, locale, packageSize),
23008
23112
  feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
23009
23113
  "/",
23010
23114
  shortenPeriod(planPeriod, t2)
@@ -23301,7 +23405,7 @@ var SubscriptionSidebar = (0, import_react36.forwardRef)(
23301
23405
  $color: settings.theme.typography.text.color,
23302
23406
  children: t2("Includes X credits per period", {
23303
23407
  total: includedCredits,
23304
- creditName: getFeatureName(credit, includedCredits),
23408
+ creditName: getFeatureName(credit, locale, includedCredits),
23305
23409
  period: shortenPeriod(credit.period, t2)
23306
23410
  })
23307
23411
  }
@@ -24039,7 +24143,7 @@ var SubscriptionSidebar = (0, import_react36.forwardRef)(
24039
24143
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Text, { children: [
24040
24144
  formatNumber(amount, { locale }),
24041
24145
  " ",
24042
- getFeatureName(bundle, amount),
24146
+ getFeatureName(bundle, locale, amount),
24043
24147
  expiry && ` \xB7 ${expiry}`
24044
24148
  ] }) })
24045
24149
  ] }),
@@ -24333,21 +24437,21 @@ var TieredPricingDetails = ({
24333
24437
  if (flatAmount === 0 && perUnitPrice === 0) {
24334
24438
  return t2("Up to X units for free", {
24335
24439
  X: upTo,
24336
- units: getFeatureName(entitlement.feature, upTo)
24440
+ units: getFeatureName(entitlement.feature, locale, upTo)
24337
24441
  });
24338
24442
  }
24339
24443
  if (flatAmount === 0 && perUnitPrice > 0) {
24340
24444
  return t2("Up to X units at $Y/unit", {
24341
24445
  X: upTo,
24342
- units: getFeatureName(entitlement.feature, upTo),
24446
+ units: getFeatureName(entitlement.feature, locale, upTo),
24343
24447
  Y: formatCurrency(perUnitPrice, { locale, currency }),
24344
- unit: getFeatureName(entitlement.feature, 1)
24448
+ unit: getFeatureName(entitlement.feature, locale, 1)
24345
24449
  });
24346
24450
  }
24347
24451
  if (flatAmount > 0 && perUnitPrice === 0) {
24348
24452
  return t2("Up to X units for $Y/period", {
24349
24453
  X: upTo,
24350
- units: getFeatureName(entitlement.feature, upTo),
24454
+ units: getFeatureName(entitlement.feature, locale, upTo),
24351
24455
  Y: formatCurrency(flatAmount, { locale, currency }),
24352
24456
  period
24353
24457
  });
@@ -24355,9 +24459,9 @@ var TieredPricingDetails = ({
24355
24459
  if (flatAmount > 0 && perUnitPrice > 0) {
24356
24460
  return t2("Up to X units at $Y/unit + $Z/period", {
24357
24461
  X: upTo,
24358
- units: getFeatureName(entitlement.feature, upTo),
24462
+ units: getFeatureName(entitlement.feature, locale, upTo),
24359
24463
  Y: formatCurrency(perUnitPrice, { locale, currency }),
24360
- unit: getFeatureName(entitlement.feature, 1),
24464
+ unit: getFeatureName(entitlement.feature, locale, 1),
24361
24465
  Z: formatCurrency(flatAmount, { locale, currency }),
24362
24466
  period
24363
24467
  });
@@ -24660,6 +24764,7 @@ var Badge = () => {
24660
24764
  // src/components/layout/RenderLayout.tsx
24661
24765
  var import_jsx_runtime49 = require("react/jsx-runtime");
24662
24766
  var Disabled = () => {
24767
+ const { t: t2 } = useTranslation();
24663
24768
  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)(
24664
24769
  Element,
24665
24770
  {
@@ -24669,8 +24774,8 @@ var Disabled = () => {
24669
24774
  $alignItems: "center",
24670
24775
  $whiteSpace: "nowrap",
24671
24776
  children: [
24672
- /* @__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" }) }),
24673
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { as: "p", children: "Please try again later." })
24777
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { as: "h1", display: "heading1", children: t2("Portal not found") }) }),
24778
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { as: "p", children: t2("Please try again later.") })
24674
24779
  ]
24675
24780
  }
24676
24781
  ) }) });
@@ -24865,12 +24970,12 @@ var UsageDetails = ({ entitlement, layout }) => {
24865
24970
  if (priceBehavior === EntitlementPriceBehavior.PayInAdvance && typeof allocation === "number") {
24866
24971
  return t2("X units", {
24867
24972
  amount: formatNumber(allocation, { locale }),
24868
- units: getFeatureName(feature, allocation)
24973
+ units: getFeatureName(feature, locale, allocation)
24869
24974
  });
24870
24975
  }
24871
24976
  if (priceBehavior === EntitlementPriceBehavior.PayAsYouGo && typeof price === "number") {
24872
24977
  const formattedCost = formatCurrency(price, { locale, currency });
24873
- const featureName = getFeatureName(feature, packageSize);
24978
+ const featureName = getFeatureName(feature, locale, packageSize);
24874
24979
  return packageSize > 1 ? t2("$X per Y units", {
24875
24980
  cost: formattedCost,
24876
24981
  size: packageSize,
@@ -24880,15 +24985,15 @@ var UsageDetails = ({ entitlement, layout }) => {
24880
24985
  if (priceBehavior === EntitlementPriceBehavior.Overage && typeof softLimit === "number") {
24881
24986
  return t2("X units", {
24882
24987
  amount: formatNumber(softLimit, { locale }),
24883
- units: getFeatureName(feature, softLimit)
24988
+ units: getFeatureName(feature, locale, softLimit)
24884
24989
  });
24885
24990
  }
24886
24991
  if (priceBehavior === EntitlementPriceBehavior.Tier) {
24887
24992
  return typeof currentTier?.to === "number" && (currentTier?.to === Infinity ? t2("Unlimited in this tier", {
24888
- feature: getFeatureName(feature)
24993
+ feature: getFeatureName(feature, locale)
24889
24994
  }) : t2("Up to X units in this tier", {
24890
24995
  amount: formatNumber(currentTier.to, { locale }),
24891
- feature: getFeatureName(feature, currentTier.to)
24996
+ feature: getFeatureName(feature, locale, currentTier.to)
24892
24997
  }));
24893
24998
  }
24894
24999
  if (showCredits && priceBehavior === EntitlementPriceBehavior.CreditBurndown && planEntitlement?.valueCredit && typeof planEntitlement?.consumptionRate === "number") {
@@ -24896,6 +25001,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24896
25001
  amount: formatConsumptionRate(planEntitlement.consumptionRate, locale),
24897
25002
  units: getFeatureName(
24898
25003
  planEntitlement.valueCredit,
25004
+ locale,
24899
25005
  planEntitlement.consumptionRate
24900
25006
  )
24901
25007
  });
@@ -24903,18 +25009,18 @@ var UsageDetails = ({ entitlement, layout }) => {
24903
25009
  if (priceBehavior === EntitlementPriceBehavior.CreditBurndown && typeof limit === "number") {
24904
25010
  return t2("X units remaining", {
24905
25011
  amount: formatNumber(limit, { locale }),
24906
- units: getFeatureName(feature, limit)
25012
+ units: getFeatureName(feature, locale, limit)
24907
25013
  });
24908
25014
  }
24909
25015
  if (!priceBehavior && typeof allocation === "number") {
24910
25016
  const numericLimit = limit ?? allocation;
24911
25017
  return t2("X units", {
24912
25018
  amount: formatNumber(numericLimit, { locale }),
24913
- units: getFeatureName(feature, numericLimit)
25019
+ units: getFeatureName(feature, locale, numericLimit)
24914
25020
  });
24915
25021
  }
24916
25022
  if (!priceBehavior && allocationType === "unlimited") {
24917
- return t2("Unlimited", { item: getFeatureName(feature) });
25023
+ return t2("Unlimited", { item: getFeatureName(feature, locale) });
24918
25024
  }
24919
25025
  }, [
24920
25026
  t2,
@@ -24943,11 +25049,11 @@ var UsageDetails = ({ entitlement, layout }) => {
24943
25049
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react41.Fragment, { children: packageSize > 1 ? t2("$X/Y units/period", {
24944
25050
  cost: formatCurrency(price, { locale, currency }),
24945
25051
  size: packageSize,
24946
- units: getFeatureName(feature, packageSize),
25052
+ units: getFeatureName(feature, locale, packageSize),
24947
25053
  period: shortenPeriod(period, t2)
24948
25054
  }) : t2("$X/unit/period", {
24949
25055
  cost: formatCurrency(price, { locale, currency }),
24950
- unit: getFeatureName(feature, packageSize),
25056
+ unit: getFeatureName(feature, locale, packageSize),
24951
25057
  period: shortenPeriod(period, t2)
24952
25058
  }) }, index)
24953
25059
  );
@@ -24956,7 +25062,7 @@ var UsageDetails = ({ entitlement, layout }) => {
24956
25062
  acc.push(
24957
25063
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react41.Fragment, { children: t2("X units used", {
24958
25064
  amount: usage,
24959
- units: getFeatureName(feature, usage)
25065
+ units: getFeatureName(feature, locale, usage)
24960
25066
  }) }, index)
24961
25067
  );
24962
25068
  index += 1;
@@ -25186,9 +25292,10 @@ var IncludedFeatures = (0, import_react42.forwardRef)(({ className, ...rest }, r
25186
25292
  singularName: grant.singularName,
25187
25293
  pluralName: grant.pluralName
25188
25294
  },
25295
+ locale,
25189
25296
  grant.creditAmount
25190
25297
  ),
25191
- licenseName: entitlement.feature ? getFeatureName(entitlement.feature, 1) : ""
25298
+ licenseName: entitlement.feature ? getFeatureName(entitlement.feature, locale, 1) : ""
25192
25299
  }) }, grantIndex)),
25193
25300
  props.entitlementExpiration.isVisible && entitlement.entitlementExpirationDate && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
25194
25301
  Text,
@@ -25522,7 +25629,7 @@ var PriceDetails = ({
25522
25629
  packageSize,
25523
25630
  " "
25524
25631
  ] }),
25525
- getFeatureName(feature, packageSize),
25632
+ getFeatureName(feature, locale, packageSize),
25526
25633
  feature.featureType === FeatureType.Trait && period && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
25527
25634
  "/",
25528
25635
  shortenPeriod(period, t2)
@@ -25547,7 +25654,7 @@ var PriceDetails = ({
25547
25654
  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: [
25548
25655
  formatNumber(amount, { locale }),
25549
25656
  " ",
25550
- getFeatureName(feature, amount),
25657
+ getFeatureName(feature, locale, amount),
25551
25658
  " \xB7 ",
25552
25659
  formatCurrency(currentTierPerUnitPrice * amount, {
25553
25660
  locale,
@@ -25675,7 +25782,7 @@ var UsageByUser = ({ source, unit }) => {
25675
25782
  const total = current?.section?.total ?? 0;
25676
25783
  const totalUsers = current?.section?.totalUsers ?? 0;
25677
25784
  const unattributed = current?.section?.unattributed;
25678
- const formatAmount = (amount) => `${formatNumber(amount, { locale })} ${getFeatureName(unit, amount)}`;
25785
+ const formatAmount = (amount) => `${formatNumber(amount, { locale })} ${getFeatureName(unit, locale, amount)}`;
25679
25786
  if (error) {
25680
25787
  return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", $alignItems: "flex-start", children: [
25681
25788
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Text, { display: "heading4", children: t2("Usage by user") }),
@@ -25781,10 +25888,10 @@ var Limit = ({ entitlement, usageDetails, fontStyle }) => {
25781
25888
  const acc = [];
25782
25889
  acc.push(
25783
25890
  priceBehavior === EntitlementPriceBehavior.Tier && typeof currentTier?.to === "number" && typeof feature !== "undefined" ? currentTier?.to === Infinity ? t2("Unlimited in this tier", {
25784
- feature: getFeatureName(feature)
25891
+ feature: getFeatureName(feature, locale)
25785
25892
  }) : t2("Up to X units in this tier", {
25786
25893
  amount: currentTier.to,
25787
- feature: getFeatureName(feature)
25894
+ feature: getFeatureName(feature, locale)
25788
25895
  }) : priceBehavior === EntitlementPriceBehavior.Overage && typeof limit === "number" ? t2("X included", {
25789
25896
  amount: formatNumber(limit, { locale })
25790
25897
  }) : priceBehavior === EntitlementPriceBehavior.PayInAdvance && typeof usage === "number" ? `${formatNumber(usage, { locale })} ${t2("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" ? t2("X units per use", {
@@ -25794,11 +25901,12 @@ var Limit = ({ entitlement, usageDetails, fontStyle }) => {
25794
25901
  ),
25795
25902
  units: getFeatureName(
25796
25903
  planEntitlement.valueCredit,
25904
+ locale,
25797
25905
  planEntitlement.consumptionRate
25798
25906
  )
25799
25907
  }) : priceBehavior === EntitlementPriceBehavior.CreditBurndown && typeof feature !== "undefined" && typeof limit === "number" ? t2("X units remaining", {
25800
25908
  amount: formatNumber(limit, { locale }),
25801
- units: getFeatureName(feature, limit)
25909
+ units: getFeatureName(feature, locale, limit)
25802
25910
  }) : typeof limit === "number" ? t2("Limit of", {
25803
25911
  amount: formatNumber(limit, { locale })
25804
25912
  }) : t2("No limit")
@@ -26000,11 +26108,11 @@ var MeteredFeatures = (0, import_react45.forwardRef)(({ className, ...rest }, re
26000
26108
  formatNumber(limit, { locale }),
26001
26109
  " "
26002
26110
  ] }),
26003
- getFeatureName(feature, limit)
26111
+ getFeatureName(feature, locale, limit)
26004
26112
  ] }) : typeof usage === "number" && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
26005
26113
  formatNumber(usage, { locale }),
26006
26114
  " ",
26007
- getFeatureName(feature, usage),
26115
+ getFeatureName(feature, locale, usage),
26008
26116
  " ",
26009
26117
  t2("used")
26010
26118
  ] }) }) }),
@@ -26093,6 +26201,7 @@ var MeteredFeatures = (0, import_react45.forwardRef)(({ className, ...rest }, re
26093
26201
  }),
26094
26202
  units: getFeatureName(
26095
26203
  credit,
26204
+ locale,
26096
26205
  credit.total.remaining
26097
26206
  )
26098
26207
  }) }) }),
@@ -26134,6 +26243,7 @@ var MeteredFeatures = (0, import_react45.forwardRef)(({ className, ...rest }, re
26134
26243
  quantity: licenseQuantity,
26135
26244
  licenseName: getFeatureName(
26136
26245
  licenseFeature,
26246
+ locale,
26137
26247
  licenseQuantity
26138
26248
  ),
26139
26249
  perUnit: perLicenseGrant.amount
@@ -26158,7 +26268,7 @@ var MeteredFeatures = (0, import_react45.forwardRef)(({ className, ...rest }, re
26158
26268
  children: [
26159
26269
  t2("Your plan includes credits", {
26160
26270
  total,
26161
- creditName: getFeatureName(credit, total),
26271
+ creditName: getFeatureName(credit, locale, total),
26162
26272
  period: shortenPeriod(composition.period, t2),
26163
26273
  composition: ` \u2014 ${parts.join(" + ")}`
26164
26274
  }),
@@ -26193,6 +26303,7 @@ var MeteredFeatures = (0, import_react45.forwardRef)(({ className, ...rest }, re
26193
26303
  amount: grant.quantity,
26194
26304
  item: getFeatureName(
26195
26305
  credit,
26306
+ locale,
26196
26307
  grant.quantity
26197
26308
  )
26198
26309
  }) }) }),
@@ -26214,7 +26325,7 @@ var MeteredFeatures = (0, import_react45.forwardRef)(({ className, ...rest }, re
26214
26325
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
26215
26326
  /* @__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: t2("X item bundle", {
26216
26327
  amount: grant.quantity,
26217
- item: getFeatureName(credit, 1),
26328
+ item: getFeatureName(credit, locale, 1),
26218
26329
  createdAt: toPrettyDate(
26219
26330
  grant.createdAt,
26220
26331
  { locale, month: "short" }
@@ -26223,6 +26334,7 @@ var MeteredFeatures = (0, import_react45.forwardRef)(({ className, ...rest }, re
26223
26334
  amount: grant.quantity,
26224
26335
  item: getFeatureName(
26225
26336
  credit,
26337
+ locale,
26226
26338
  grant.quantity
26227
26339
  ),
26228
26340
  createdAt: toPrettyDate(
@@ -26233,6 +26345,7 @@ var MeteredFeatures = (0, import_react45.forwardRef)(({ className, ...rest }, re
26233
26345
  amount: grant.quantity,
26234
26346
  item: getFeatureName(
26235
26347
  credit,
26348
+ locale,
26236
26349
  grant.quantity
26237
26350
  ),
26238
26351
  createdAt: toPrettyDate(
@@ -26613,7 +26726,7 @@ PaymentMethod.displayName = "PaymentMethod";
26613
26726
  // src/components/elements/payment-method/PaymentMethodDetails.tsx
26614
26727
  var import_react_stripe_js2 = require("@stripe/react-stripe-js");
26615
26728
 
26616
- // node_modules/.pnpm/@stripe+stripe-js@9.16.0/node_modules/@stripe/stripe-js/dist/index.mjs
26729
+ // node_modules/.pnpm/@stripe+stripe-js@9.17.0/node_modules/@stripe/stripe-js/dist/index.mjs
26617
26730
  function _typeof(obj) {
26618
26731
  "@babel/helpers - typeof";
26619
26732
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
@@ -26667,7 +26780,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
26667
26780
  }
26668
26781
  stripe._registerWrapper({
26669
26782
  name: "stripe-js",
26670
- version: "9.16.0",
26783
+ version: "9.17.0",
26671
26784
  startTime
26672
26785
  });
26673
26786
  };
@@ -26745,7 +26858,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
26745
26858
  var version = runtimeVersionToUrlVersion(maybeStripe.version);
26746
26859
  var expectedVersion = RELEASE_TRAIN;
26747
26860
  if (isTestKey && version !== expectedVersion) {
26748
- 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"));
26861
+ 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"));
26749
26862
  }
26750
26863
  var stripe = maybeStripe.apply(void 0, args);
26751
26864
  registerWrapper(stripe, startTime);
@@ -27200,7 +27313,7 @@ var UsageDetails2 = ({
27200
27313
  packageSize,
27201
27314
  " "
27202
27315
  ] }),
27203
- getFeatureName(entitlement.feature, packageSize),
27316
+ getFeatureName(entitlement.feature, locale, packageSize),
27204
27317
  entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
27205
27318
  "/",
27206
27319
  shortenPeriod(period, t2)
@@ -27220,6 +27333,7 @@ var UsageDetails2 = ({
27220
27333
  " ",
27221
27334
  getFeatureName(
27222
27335
  entitlement.planEntitlement.valueCredit,
27336
+ locale,
27223
27337
  entitlement.planEntitlement.consumptionRate
27224
27338
  ),
27225
27339
  " ",
@@ -27255,7 +27369,7 @@ var UsageDetails2 = ({
27255
27369
  /* @__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: [
27256
27370
  quantity,
27257
27371
  " ",
27258
- getFeatureName(entitlement.feature, quantity, true)
27372
+ getFeatureName(entitlement.feature, locale, quantity, true)
27259
27373
  ] }) : entitlement.feature.name }),
27260
27374
  /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Text, { children: [
27261
27375
  description.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
@@ -27716,9 +27830,14 @@ var PlanManager = (0, import_react50.forwardRef)(({ children, className, portal,
27716
27830
  amount: perLicenseGrant.amount,
27717
27831
  creditName: getFeatureName(
27718
27832
  group,
27833
+ locale,
27719
27834
  perLicenseGrant.amount
27720
27835
  ),
27721
- licenseName: getFeatureName(licenseFeature, 1)
27836
+ licenseName: getFeatureName(
27837
+ licenseFeature,
27838
+ locale,
27839
+ 1
27840
+ )
27722
27841
  }),
27723
27842
  composition.fixedQuantity > 0 && creditPeriod && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27724
27843
  " ",
@@ -27726,6 +27845,7 @@ var PlanManager = (0, import_react50.forwardRef)(({ children, className, portal,
27726
27845
  amount: composition.fixedQuantity,
27727
27846
  creditName: getFeatureName(
27728
27847
  group,
27848
+ locale,
27729
27849
  composition.fixedQuantity
27730
27850
  ),
27731
27851
  period: t2(
@@ -27736,7 +27856,7 @@ var PlanManager = (0, import_react50.forwardRef)(({ children, className, portal,
27736
27856
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27737
27857
  group.total.value,
27738
27858
  " ",
27739
- getFeatureName(group, group.total.value),
27859
+ getFeatureName(group, locale, group.total.value),
27740
27860
  " ",
27741
27861
  subscriptionInterval && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
27742
27862
  t2("per"),
@@ -27779,6 +27899,7 @@ var PlanManager = (0, import_react50.forwardRef)(({ children, className, portal,
27779
27899
  quantity: licenseQuantity,
27780
27900
  licenseName: getFeatureName(
27781
27901
  licenseFeature,
27902
+ locale,
27782
27903
  licenseQuantity
27783
27904
  ),
27784
27905
  perUnit: perLicenseGrant.amount,
@@ -27786,6 +27907,7 @@ var PlanManager = (0, import_react50.forwardRef)(({ children, className, portal,
27786
27907
  total: resolvedTotal,
27787
27908
  creditName: getFeatureName(
27788
27909
  group,
27910
+ locale,
27789
27911
  resolvedTotal
27790
27912
  ),
27791
27913
  period: shortenPeriod(creditPeriod, t2)
@@ -27793,12 +27915,14 @@ var PlanManager = (0, import_react50.forwardRef)(({ children, className, portal,
27793
27915
  quantity: licenseQuantity,
27794
27916
  licenseName: getFeatureName(
27795
27917
  licenseFeature,
27918
+ locale,
27796
27919
  licenseQuantity
27797
27920
  ),
27798
27921
  perUnit: perLicenseGrant.amount,
27799
27922
  total: resolvedTotal,
27800
27923
  creditName: getFeatureName(
27801
27924
  group,
27925
+ locale,
27802
27926
  resolvedTotal
27803
27927
  ),
27804
27928
  period: shortenPeriod(creditPeriod, t2)
@@ -27840,7 +27964,7 @@ var PlanManager = (0, import_react50.forwardRef)(({ children, className, portal,
27840
27964
  if (!autoTopupEnabled) {
27841
27965
  acc.push(
27842
27966
  /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Text, { $leading: "tight", children: t2("Auto top-up disabled for token", {
27843
- unit: getFeatureName(grant.credit, 1)
27967
+ unit: getFeatureName(grant.credit, locale, 1)
27844
27968
  }) }, grant.id)
27845
27969
  );
27846
27970
  return acc;
@@ -27852,6 +27976,7 @@ var PlanManager = (0, import_react50.forwardRef)(({ children, className, portal,
27852
27976
  /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Text, { $leading: "tight", children: t2("Adds X tokens when Y remaining in balance", {
27853
27977
  unit: getFeatureName(
27854
27978
  grant.credit,
27979
+ locale,
27855
27980
  autoTopupAmount
27856
27981
  ),
27857
27982
  amount: autoTopupAmount,
@@ -27911,7 +28036,7 @@ var PlanManager = (0, import_react50.forwardRef)(({ children, className, portal,
27911
28036
  " (",
27912
28037
  group.quantity,
27913
28038
  " ",
27914
- getFeatureName(group, group.quantity),
28039
+ getFeatureName(group, locale, group.quantity),
27915
28040
  ")"
27916
28041
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27917
28042
  group.grants.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Text, { style: { opacity: 0.5 }, children: [
@@ -27922,7 +28047,7 @@ var PlanManager = (0, import_react50.forwardRef)(({ children, className, portal,
27922
28047
  ] }),
27923
28048
  group.quantity,
27924
28049
  " ",
27925
- getFeatureName(group, group.quantity)
28050
+ getFeatureName(group, locale, group.quantity)
27926
28051
  ] }),
27927
28052
  group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27928
28053
  Text,
@@ -27982,12 +28107,12 @@ var PlanManager = (0, import_react50.forwardRef)(({ children, className, portal,
27982
28107
  " (",
27983
28108
  group.quantity,
27984
28109
  " ",
27985
- getFeatureName(group, group.quantity),
28110
+ getFeatureName(group, locale, group.quantity),
27986
28111
  ")"
27987
28112
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Text, { display: props.addOns.fontStyle, children: [
27988
28113
  group.quantity,
27989
28114
  " ",
27990
- getFeatureName(group, group.quantity)
28115
+ getFeatureName(group, locale, group.quantity)
27991
28116
  ] }),
27992
28117
  group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27993
28118
  Text,
@@ -28038,7 +28163,7 @@ var PlanManager = (0, import_react50.forwardRef)(({ children, className, portal,
28038
28163
  /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Text, { display: props.addOns.fontStyle, children: [
28039
28164
  group.quantity,
28040
28165
  " ",
28041
- getFeatureName(group, group.quantity)
28166
+ getFeatureName(group, locale, group.quantity)
28042
28167
  ] }),
28043
28168
  group.total.used > 0 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
28044
28169
  Text,
@@ -28111,6 +28236,7 @@ function renderMeteredEntitlementPricing2({
28111
28236
  "/",
28112
28237
  feature ? getFeatureName(
28113
28238
  feature,
28239
+ locale,
28114
28240
  packageSize
28115
28241
  ) : featureName || "unit"
28116
28242
  ] });
@@ -28128,6 +28254,7 @@ function renderMeteredEntitlementPricing2({
28128
28254
  ] }),
28129
28255
  feature ? getFeatureName(
28130
28256
  feature,
28257
+ locale,
28131
28258
  packageSize
28132
28259
  ) : featureName || "unit"
28133
28260
  ] });
@@ -28317,7 +28444,7 @@ var AddOn2 = ({
28317
28444
  {
28318
28445
  $flexDirection: "column",
28319
28446
  $justifyContent: "center",
28320
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { children: getFeatureName(entitlement.feature) })
28447
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Text, { children: getFeatureName(entitlement.feature, locale) })
28321
28448
  }
28322
28449
  )
28323
28450
  ] }),
@@ -28479,7 +28606,11 @@ var Entitlement2 = ({
28479
28606
  formatNumber(entitlementPackageSize, { locale }),
28480
28607
  " "
28481
28608
  ] }),
28482
- getFeatureName(entitlement.feature, entitlementPackageSize),
28609
+ getFeatureName(
28610
+ entitlement.feature,
28611
+ locale,
28612
+ entitlementPackageSize
28613
+ ),
28483
28614
  entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
28484
28615
  " ",
28485
28616
  t2("per"),
@@ -28497,12 +28628,13 @@ var Entitlement2 = ({
28497
28628
  " ",
28498
28629
  getFeatureName(
28499
28630
  entitlement.valueCredit,
28631
+ locale,
28500
28632
  entitlement.consumptionRate
28501
28633
  ),
28502
28634
  " ",
28503
28635
  t2("per"),
28504
28636
  " ",
28505
- getFeatureName(entitlement.feature, 1)
28637
+ getFeatureName(entitlement.feature, locale, 1)
28506
28638
  ] }) : entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && creditBasedEntitlementLimit ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: creditBasedEntitlementLimit?.period ? t2("Up to X units per period", {
28507
28639
  amount: formatNumber(
28508
28640
  creditBasedEntitlementLimit.limit,
@@ -28510,9 +28642,12 @@ var Entitlement2 = ({
28510
28642
  ),
28511
28643
  units: getFeatureName(
28512
28644
  entitlement.feature,
28645
+ locale,
28513
28646
  creditBasedEntitlementLimit.limit
28514
28647
  ),
28515
- period: creditBasedEntitlementLimit.period
28648
+ period: t2(
28649
+ creditBasedEntitlementLimit.period
28650
+ )
28516
28651
  }) : t2("Up to X units", {
28517
28652
  amount: formatNumber(
28518
28653
  creditBasedEntitlementLimit.limit,
@@ -28520,17 +28655,18 @@ var Entitlement2 = ({
28520
28655
  ),
28521
28656
  units: getFeatureName(
28522
28657
  entitlement.feature,
28658
+ locale,
28523
28659
  creditBasedEntitlementLimit.limit
28524
28660
  )
28525
28661
  }) }) : entitlement.valueType === EntitlementValueType.Numeric || entitlement.valueType === EntitlementValueType.Unlimited || entitlement.valueType === EntitlementValueType.Trait ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
28526
28662
  entitlement.valueType === EntitlementValueType.Unlimited && !entitlement.priceBehavior ? t2("Unlimited", {
28527
- item: getFeatureName(entitlement.feature)
28663
+ item: getFeatureName(entitlement.feature, locale)
28528
28664
  }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
28529
28665
  typeof limit === "number" && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
28530
28666
  formatNumber(limit, { locale }),
28531
28667
  " "
28532
28668
  ] }),
28533
- getFeatureName(entitlement.feature, limit)
28669
+ getFeatureName(entitlement.feature, locale, limit)
28534
28670
  ] }),
28535
28671
  metricPeriodName && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
28536
28672
  " ",
@@ -28559,6 +28695,7 @@ var Entitlement2 = ({
28559
28695
  ] }),
28560
28696
  getFeatureName(
28561
28697
  entitlement.feature,
28698
+ locale,
28562
28699
  entitlementPackageSize
28563
28700
  ),
28564
28701
  entitlement.feature.featureType === FeatureType.Trait && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
@@ -29038,7 +29175,7 @@ var PricingTable = (0, import_react53.forwardRef)(({ className, ...rest }, ref)
29038
29175
  $alignItems: "center",
29039
29176
  $justifyContent: "center",
29040
29177
  $padding: `${settings.theme.card.padding / TEXT_BASE_SIZE}rem`,
29041
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Loader, { "aria-label": "loading", $size: "2xl" })
29178
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Loader, { "aria-label": t2("Loading"), $size: "2xl" })
29042
29179
  }
29043
29180
  );
29044
29181
  }
@@ -32256,6 +32393,7 @@ var Loading = () => {
32256
32393
  };
32257
32394
  var Error2 = ({ message }) => {
32258
32395
  const { settings } = useEmbed();
32396
+ const { t: t2 } = useTranslation();
32259
32397
  return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
32260
32398
  Flex,
32261
32399
  {
@@ -32267,7 +32405,7 @@ var Error2 = ({ message }) => {
32267
32405
  $alignItems: "center",
32268
32406
  $justifyContent: "center",
32269
32407
  children: [
32270
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Text, { display: "heading1", children: "Error" }) }),
32408
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Text, { display: "heading1", children: t2("Error") }) }),
32271
32409
  /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Text, { children: message }) })
32272
32410
  ]
32273
32411
  }
@@ -32275,6 +32413,7 @@ var Error2 = ({ message }) => {
32275
32413
  };
32276
32414
  var SchematicEmbed = ({ id, accessToken }) => {
32277
32415
  const theme = (0, import_react58.useContext)(import_styled_components23.ThemeContext);
32416
+ const { t: t2 } = useTranslation();
32278
32417
  const {
32279
32418
  data,
32280
32419
  error,
@@ -32345,13 +32484,15 @@ var SchematicEmbed = ({ id, accessToken }) => {
32345
32484
  return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Error2, { message: error.message });
32346
32485
  }
32347
32486
  if (accessToken?.length === 0) {
32348
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Error2, { message: "Please provide an access token." });
32487
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Error2, { message: t2("Please provide an access token.") });
32349
32488
  }
32350
32489
  if (!accessToken?.startsWith("token_")) {
32351
32490
  return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
32352
32491
  Error2,
32353
32492
  {
32354
- message: 'Invalid access token; your temporary access token will start with "token_".'
32493
+ message: t2(
32494
+ "Invalid access token; your temporary access token will start with `token_`."
32495
+ )
32355
32496
  }
32356
32497
  );
32357
32498
  }