refactor: every count in the web app is said by one plural(), with the viewer's thousands separator; a source guard names any hand-written copy (M505 #5642)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { plural } from '#lib/utils/plural.js';
|
||||
import PageColumn from '#lib/components/PageColumn.svelte';
|
||||
import { pageTitle } from '#lib/branding.js';
|
||||
import { page } from '$app/state';
|
||||
@@ -34,7 +35,7 @@
|
||||
</a>
|
||||
<h1 class="mt-2 font-display text-2xl font-medium text-text-primary">Tracks matching '{q}'</h1>
|
||||
{#if q && !query?.isPending && !(query?.isError && tracks.length === 0)}
|
||||
<p class="text-sm text-text-secondary">{total} {total === 1 ? 'track' : 'tracks'}</p>
|
||||
<p class="text-sm text-text-secondary">{plural(total, 'track', 'tracks')}</p>
|
||||
{/if}
|
||||
</header>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user