fix: Localize ok cancel alert dialogs

This commit is contained in:
Christian Pauly 2021-02-18 14:23:22 +01:00
commit 4d5d198450
13 changed files with 37 additions and 4 deletions

View file

@ -27,9 +27,13 @@ class UserBottomSheet extends StatelessWidget {
}) : super(key: key);
void participantAction(BuildContext context, String action) async {
final Function _askConfirmation = () async =>
(await showOkCancelAlertDialog(
context: context, title: l10n.areYouSure) ==
final Function _askConfirmation =
() async => (await showOkCancelAlertDialog(
context: context,
title: l10n.areYouSure,
okLabel: l10n.yes,
cancelLabel: l10n.no,
) ==
OkCancelResult.ok);
switch (action) {
case 'mention':