π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos][cast] refactor l10n var
Priyanshu Dangare91170108e511
diff --git a/mobile/apps/photos/lib/ui/cast/auto.dart b/mobile/apps/photos/lib/ui/cast/auto.dartindex 3ef1296ff0..dd925bbc4b 100644--- a/mobile/apps/photos/lib/ui/cast/auto.dart+++ b/mobile/apps/photos/lib/ui/cast/auto.dart@@ -23,27 +23,19 @@ class _AutoCastDialogState extends State<AutoCastDialog> {@overrideWidget build(BuildContext context) {+ final l10n = AppLocalizations.of(context);final textStyle = getEnteTextTheme(context);final AlertDialog alert = AlertDialog(- title: Text(- AppLocalizations.of(context).connectToDevice,- style: textStyle.largeBold,- ),+ title: Text(l10n.connectToDevice, style: textStyle.largeBold),content: Column(crossAxisAlignment: CrossAxisAlignment.start,mainAxisSize: MainAxisSize.min,children: [- Text(- AppLocalizations.of(context).autoCastDialogBody,- style: textStyle.bodyMuted,- ),+ Text(l10n.autoCastDialogBody, style: textStyle.bodyMuted),if (Platform.isIOS)- Text(- AppLocalizations.of(context).autoCastiOSPermission,- style: textStyle.bodyMuted,- ),+ Text(l10n.autoCastiOSPermission, style: textStyle.bodyMuted),const SizedBox(height: 16),- FutureBuilder<List<(String, Object)>>(+ FutureBuilder(future: castService.searchDevices(),builder: (_, snapshot) {if (snapshot.hasError) {@@ -55,9 +47,7 @@ class _AutoCastDialogState extends State<AutoCastDialog> {}if (snapshot.data!.isEmpty) {- return Center(- child: Text(AppLocalizations.of(context).noDeviceFound),- );+ return Center(child: Text(l10n.noDeviceFound));}return Column(