Skip to content

Commit 62dd5a8

Browse files
committed
Uses Simplr to pluralize “bundle[s]” in the modal
1 parent b8acfd5 commit 62dd5a8

File tree

1 file changed

+8
-4
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.concurrency

1 file changed

+8
-4
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.concurrency/route.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
import { json, type ActionFunctionArgs, type LoaderFunctionArgs } from "@remix-run/server-runtime";
2020
import { tryCatch } from "@trigger.dev/core";
2121
import { useEffect, useState } from "react";
22+
import simplur from "simplur";
2223
import { typedjson, useTypedLoaderData } from "remix-typedjson";
2324
import { z } from "zod";
2425
import { AdminDebugTooltip } from "~/components/admin/debugTooltip";
@@ -705,7 +706,7 @@ function PurchaseConcurrencyModal({
705706
</div>
706707
<div className="grid grid-cols-2 text-xs">
707708
<span className="text-text-dimmed">
708-
({extraConcurrency / concurrencyPricing.stepSize} bundles)
709+
({simplur`${extraConcurrency / concurrencyPricing.stepSize} bundle[|s]`})
709710
</span>
710711
<span className="justify-self-end text-text-dimmed">/mth</span>
711712
</div>
@@ -726,8 +727,11 @@ function PurchaseConcurrencyModal({
726727
</div>
727728
<div className="grid grid-cols-2 text-xs">
728729
<span className="text-text-dimmed">
729-
({(amountValue - extraConcurrency) / concurrencyPricing.stepSize} bundles @{" "}
730-
{formatCurrency(concurrencyPricing.centsPerStep / 100, true)}/mth)
730+
(
731+
{simplur`${
732+
(amountValue - extraConcurrency) / concurrencyPricing.stepSize
733+
} bundle[|s]`}{" "}
734+
@ {formatCurrency(concurrencyPricing.centsPerStep / 100, true)}/mth)
731735
</span>
732736
<span className="justify-self-end text-text-dimmed">/mth</span>
733737
</div>
@@ -746,7 +750,7 @@ function PurchaseConcurrencyModal({
746750
</div>
747751
<div className="grid grid-cols-2 text-xs">
748752
<span className="text-text-dimmed">
749-
({amountValue / concurrencyPricing.stepSize} bundles)
753+
({simplur`${amountValue / concurrencyPricing.stepSize} bundle[|s]`})
750754
</span>
751755
<span className="justify-self-end text-text-dimmed">/mth</span>
752756
</div>

0 commit comments

Comments
 (0)