From 69effa2b7d287f47945dfc6f43b04cd9b23c0aa8 Mon Sep 17 00:00:00 2001 From: Mathis Kirchner Date: Wed, 7 Jan 2026 11:49:10 +0100 Subject: [PATCH] change winner localization to not include placeholder --- lib/l10n/arb/app_en.arb | 10 ++-------- lib/presentation/widgets/tiles/match_tile.dart | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb index 8e6d63a..e3666b3 100644 --- a/lib/l10n/arb/app_en.arb +++ b/lib/l10n/arb/app_en.arb @@ -90,15 +90,9 @@ } } }, - "winner": "Winner: {winnerName}", + "winner": "Winner", "@winner": { - "description": "Shows the winner's name", - "placeholders": { - "winnerName": { - "type": "String", - "example": "John" - } - } + "description": "Winner label", }, "players": "Players", "@players": { diff --git a/lib/presentation/widgets/tiles/match_tile.dart b/lib/presentation/widgets/tiles/match_tile.dart index 2b94cf2..b037af2 100644 --- a/lib/presentation/widgets/tiles/match_tile.dart +++ b/lib/presentation/widgets/tiles/match_tile.dart @@ -99,7 +99,7 @@ class _MatchTileState extends State { const SizedBox(width: 8), Expanded( child: Text( - loc.winner(winner.name), + "${loc.winner}: ${winner.name}", style: const TextStyle( fontSize: 14, fontWeight: FontWeight.w600,