change winner localization to not include placeholder

This commit is contained in:
2026-01-07 11:49:10 +01:00
parent 5db008c274
commit 69effa2b7d
2 changed files with 3 additions and 9 deletions

View File

@@ -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": {

View File

@@ -99,7 +99,7 @@ class _MatchTileState extends State<MatchTile> {
const SizedBox(width: 8),
Expanded(
child: Text(
loc.winner(winner.name),
"${loc.winner}: ${winner.name}",
style: const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,