feat: Deleting games associated with matches deletes them
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 42s
Pull Request Pipeline / lint (pull_request) Successful in 50s

This commit is contained in:
2026-05-03 01:00:44 +02:00
parent 92bf74683f
commit e3aef81ab6
11 changed files with 218 additions and 67 deletions

View File

@@ -302,6 +302,12 @@ abstract class AppLocalizations {
/// **'Delete Game'**
String get delete_game;
/// No description provided for @delete_game_with_matches_warning.
///
/// In en, this message translates to:
/// **'If you delete this game template, {count, plural, =1{1 match} other{{count} matches}} using this game template will also be deleted.'**
String delete_game_with_matches_warning(int count);
/// Confirmation dialog for deleting a group
///
/// In en, this message translates to:

View File

@@ -114,6 +114,17 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get delete_game => 'Spielvorlage löschen';
@override
String delete_game_with_matches_warning(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count Spiele',
one: '1 Spiel',
);
return 'Wenn du diese Spielvorlage löschst, werden $_temp0 mit dieser Spielvorlage ebenfalls gelöscht.';
}
@override
String get delete_group => 'Gruppe löschen';

View File

@@ -114,6 +114,17 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get delete_game => 'Delete Game';
@override
String delete_game_with_matches_warning(int count) {
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: '$count matches',
one: '1 match',
);
return 'If you delete this game template, $_temp0 using this game template will also be deleted.';
}
@override
String get delete_group => 'Delete Group';