refactor: Use non nullable localizations builder and lazy load on web
This commit is contained in:
parent
8cedd2a45a
commit
0d4b7d67cc
111 changed files with 879 additions and 883 deletions
|
|
@ -57,15 +57,15 @@ class InvitationSelectionController extends State<InvitationSelection> {
|
|||
if (OkCancelResult.ok !=
|
||||
await showOkCancelAlertDialog(
|
||||
context: context,
|
||||
title: L10n.of(context)!.inviteContact,
|
||||
message: L10n.of(context)!.inviteContactToGroupQuestion(
|
||||
title: L10n.of(context).inviteContact,
|
||||
message: L10n.of(context).inviteContactToGroupQuestion(
|
||||
displayname,
|
||||
room.getLocalizedDisplayname(
|
||||
MatrixLocals(L10n.of(context)!),
|
||||
MatrixLocals(L10n.of(context)),
|
||||
),
|
||||
),
|
||||
okLabel: L10n.of(context)!.invite,
|
||||
cancelLabel: L10n.of(context)!.cancel,
|
||||
okLabel: L10n.of(context).invite,
|
||||
cancelLabel: L10n.of(context).cancel,
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -76,7 +76,7 @@ class InvitationSelectionController extends State<InvitationSelection> {
|
|||
if (success.error == null) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(L10n.of(context)!.contactHasBeenInvitedToTheGroup),
|
||||
content: Text(L10n.of(context).contactHasBeenInvitedToTheGroup),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue