Skip to content

Commit 7601bce

Browse files
authored
Merge pull request #89 from Audiino/main
games: Pluralize Scrabble exchange tiles and play points log
2 parents 85ecffb + 2246e7d commit 7601bce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ps/games/scrabble/render.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ export function renderMove(logEntry: Log, game: Scrabble): [ReactElement, { name
2727
{words.length === 1 && !logEntry.ctx.points.bingo
2828
? words[0][0]
2929
: words.map(([word, points]) => `${word} (${points})`).list(game.$T)}{' '}
30-
for {logEntry.ctx.points.total} points!
30+
for {pluralize(logEntry.ctx.points.total, 'point', 'points')}!
3131
{logEntry.ctx.points.bingo ? ' BINGO!' : null}
3232
</LogEntry>,
3333
opts,
3434
];
3535
case 'exchange':
3636
return [
3737
<LogEntry game={game}>
38-
<Username name={playerName} clickable /> exchanged {logEntry.ctx.tiles.length} tiles.
38+
<Username name={playerName} clickable /> exchanged {pluralize(logEntry.ctx.tiles.length, 'tile', 'tiles')}.
3939
</LogEntry>,
4040
opts,
4141
];

0 commit comments

Comments
 (0)