From 2246e7d2a2957a4a44505b77ed4b2e03a409bc49 Mon Sep 17 00:00:00 2001 From: Audiino <121476415+Audiino@users.noreply.github.com> Date: Mon, 6 Oct 2025 00:25:01 +0700 Subject: [PATCH] games: Pluralize Scrabble exchange tiles and play points log --- src/ps/games/scrabble/render.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ps/games/scrabble/render.tsx b/src/ps/games/scrabble/render.tsx index 9e4a068f..a3c9c35c 100644 --- a/src/ps/games/scrabble/render.tsx +++ b/src/ps/games/scrabble/render.tsx @@ -27,7 +27,7 @@ export function renderMove(logEntry: Log, game: Scrabble): [ReactElement, { name {words.length === 1 && !logEntry.ctx.points.bingo ? words[0][0] : words.map(([word, points]) => `${word} (${points})`).list(game.$T)}{' '} - for {logEntry.ctx.points.total} points! + for {pluralize(logEntry.ctx.points.total, 'point', 'points')}! {logEntry.ctx.points.bingo ? ' BINGO!' : null} , opts, @@ -35,7 +35,7 @@ export function renderMove(logEntry: Log, game: Scrabble): [ReactElement, { name case 'exchange': return [ - exchanged {logEntry.ctx.tiles.length} tiles. + exchanged {pluralize(logEntry.ctx.tiles.length, 'tile', 'tiles')}. , opts, ];