From 1363c1fb06bee6628877b1fc94bae911bd1ccf48 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Tue, 21 Apr 2026 17:19:01 +0200 Subject: [PATCH] Added function for point label --- lib/core/common.dart | 8 ++++++++ 1 file changed, 8 insertions(+) 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}'; + } +}