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 { page } from '$app/state';
|
||||
import { goto } from '$app/navigation';
|
||||
@@ -272,7 +273,7 @@
|
||||
<p class="text-sm text-text-muted">{pl.description}</p>
|
||||
{/if}
|
||||
<p class="text-xs text-text-muted">
|
||||
{pl.track_count} {pl.track_count === 1 ? 'track' : 'tracks'}
|
||||
{plural(pl.track_count, 'track', 'tracks')}
|
||||
{#if pl.is_public}· public{:else}· private{/if}
|
||||
{#if !isOwner}· by {pl.owner_username}{/if}
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user