[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: correct pluralization for stars and forks (#86)

authored by

Luna Seemann and committed by
GitHub
80ad36b2 be9ae016

+6 -2
+6 -2
app/pages/[...package].vue
··· 496 496 > 497 497 <span class="i-carbon-logo-github w-4 h-4" aria-hidden="true" /> 498 498 <span v-if="repoMeta"> 499 - {{ formatCompactNumber(stars, { decimals: 1 }) }} stars 499 + {{ formatCompactNumber(stars, { decimals: 1 }) }} 500 + {{ stars === 1 ? 'star' : 'stars' }} 500 501 </span> 501 502 <span v-else>repo</span> 502 503 </a> ··· 532 533 class="link-subtle font-mono text-sm inline-flex items-center gap-1.5" 533 534 > 534 535 <span class="i-carbon-fork w-4 h-4" aria-hidden="true" /> 535 - <span>{{ formatCompactNumber(forks, { decimals: 1 }) }} forks</span> 536 + <span> 537 + {{ formatCompactNumber(forks, { decimals: 1 }) }} 538 + {{ forks === 1 ? 'fork' : 'forks' }} 539 + </span> 536 540 </a> 537 541 </li> 538 542