Lokalisierung implementieren #112

Merged
sneeex merged 41 commits from feature/100-lokalisierung-hinzufügen into development 2026-01-07 11:30:11 +00:00
2 changed files with 3 additions and 9 deletions
Showing only changes of commit 69effa2b7d - Show all commits

View File

@@ -90,15 +90,9 @@
}
}
},
"winner": "Winner: {winnerName}",
"winner": "Winner",
sneeex marked this conversation as resolved Outdated

Würde : und die Variable wegnehmen. Wäre die Variable innerhalb des Strings, dann sinnvoll, ansonsten nicht und einfach an der jeweiligen Stelle mit interpolation machen

Würde `:` und die Variable wegnehmen. Wäre die Variable innerhalb des Strings, dann sinnvoll, ansonsten nicht und einfach an der jeweiligen Stelle mit interpolation machen
"@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,