refactor: Use non nullable localizations builder and lazy load on web

This commit is contained in:
krille-chan 2024-10-06 08:35:37 +02:00
commit 0d4b7d67cc
No known key found for this signature in database
111 changed files with 879 additions and 883 deletions

View file

@ -79,7 +79,7 @@ extension on SyncStatusUpdate {
String toLocalizedString(BuildContext context) {
switch (status) {
case SyncStatus.waitingForResponse:
return L10n.of(context)!.loadingPleaseWait;
return L10n.of(context).loadingPleaseWait;
case SyncStatus.error:
return ((error?.exception ?? Object()) as Object)
.toLocalizedString(context);
@ -87,7 +87,7 @@ extension on SyncStatusUpdate {
case SyncStatus.cleaningUp:
case SyncStatus.finished:
default:
return L10n.of(context)!.synchronizingPleaseWait;
return L10n.of(context).synchronizingPleaseWait;
}
}
}