diff --git a/lib/core/common.dart b/lib/core/common.dart index 20b0225..96187b0 100644 --- a/lib/core/common.dart +++ b/lib/core/common.dart @@ -43,3 +43,11 @@ String getExtraPlayerCount(Match match) { } return ' + ${count.toString()}'; } + +String getPointLabel(AppLocalizations loc, int points) { + if (points == 1) { + return '$points ${loc.point}'; + } else { + return '$points ${loc.points}'; + } +}