[mob][photos] Extract string

This commit is contained in:
Neeraj Gupta 2024-04-29 16:59:28 +05:30
parent 5c645d50f0
commit 9e7c82d5b9
4 changed files with 15 additions and 2 deletions

View file

@ -1000,6 +1000,8 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Or pick an existing one"),
"pair": MessageLookupByLibrary.simpleMessage("Pair"),
"pairWithPin": MessageLookupByLibrary.simpleMessage("Pair with PIN"),
"pairingComplete":
MessageLookupByLibrary.simpleMessage("Pairing complete"),
"passkey": MessageLookupByLibrary.simpleMessage("Passkey"),
"passkeyAuthTitle":
MessageLookupByLibrary.simpleMessage("Passkey verification"),

View file

@ -8683,6 +8683,16 @@ class S {
args: [],
);
}
/// `Pairing complete`
String get pairingComplete {
return Intl.message(
'Pairing complete',
name: 'pairingComplete',
desc: '',
args: [],
);
}
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {

View file

@ -1224,5 +1224,6 @@
"stopCastingTitle": "Stop casting",
"stopCastingBody": "Do you want to stop casting?",
"castIPMismatchTitle": "Failed to cast album",
"castIPMismatchBody": "Please make sure you are on the same network as the TV."
"castIPMismatchBody": "Please make sure you are on the same network as the TV.",
"pairingComplete": "Pairing complete"
}

View file

@ -944,7 +944,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
widget.collection!.id,
castToken,
);
showToast(context, "Pairing complete");
showToast(context, S.of(context).pairingComplete);
return true;
} catch (e, s) {
_logger.severe("Failed to cast album", e, s);