Lokalisierung implementieren #112

Merged
sneeex merged 41 commits from feature/100-lokalisierung-hinzufügen into development 2026-01-07 11:30:11 +00:00
Showing only changes of commit d77b5f20f9 - Show all commits

View File

@@ -152,7 +152,10 @@ class _StatisticsViewState extends State<StatisticsView> {
final playerId = winCounts[i].$1;
final player = players.firstWhere(
(p) => p.id == playerId,
orElse: () => Player(id: playerId, name: 'N.a.'),
orElse: () => Player(
id: playerId,
name: AppLocalizations.of(context)!.not_available,
),
);
winCounts[i] = (player.name, winCounts[i].$2);
}
@@ -214,7 +217,10 @@ class _StatisticsViewState extends State<StatisticsView> {
final playerId = matchCounts[i].$1;
final player = players.firstWhere(
(p) => p.id == playerId,
orElse: () => Player(id: playerId, name: 'N.a.'),
orElse: () => Player(
id: playerId,
name: AppLocalizations.of(context)!.not_available,
),
);
matchCounts[i] = (player.name, matchCounts[i].$2);
}