Skip to content

Commit fceae35

Browse files
authored
pluralize (#1469)
1 parent 0ddf231 commit fceae35

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/routes/tools/+page.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,11 @@
262262
{tool.createdByName}
263263
</a>
264264
<span class="text-gray-300">•</span>
265-
{tool.useCount} runs
265+
{#if tool.useCount === 1}
266+
1 run
267+
{:else}
268+
{tool.useCount} runs
269+
{/if}
266270
</p>
267271
{:else}
268272
<p class="mt-auto text-xs text-purple-700 dark:text-purple-400">

src/routes/tools/[toolId]/+page.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@
8282
{data.tool?.createdByName}
8383
</a>
8484
<span class="text-gray-300">•</span>
85-
{data.tool.useCount} runs
85+
{#if data.tool.useCount === 1}
86+
1 run
87+
{:else}
88+
{data.tool.useCount} runs
89+
{/if}
8690
</p>
8791
{/if}
8892

0 commit comments

Comments
 (0)