fix: Localize ok cancel alert dialogs
This commit is contained in:
parent
2724961e51
commit
4d5d198450
13 changed files with 37 additions and 4 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue