diff --git a/mobile/lib/emergency/emergency_page.dart b/mobile/lib/emergency/emergency_page.dart index db1c153641..6970ca8da2 100644 --- a/mobile/lib/emergency/emergency_page.dart +++ b/mobile/lib/emergency/emergency_page.dart @@ -493,8 +493,7 @@ class _EmergencyPageState extends State { isInAlert: true, ), ], - body: - "You have been invited to be a legacy contact by ${contact.user.email}", + body: S.of(context).legacyInvite(contact.user.email), actionSheetType: ActionSheetType.defaultActionSheet, ); return; diff --git a/mobile/lib/generated/intl/messages_en.dart b/mobile/lib/generated/intl/messages_en.dart index 211aed2615..e24f4d7a2f 100644 --- a/mobile/lib/generated/intl/messages_en.dart +++ b/mobile/lib/generated/intl/messages_en.dart @@ -120,6 +120,9 @@ class MessageLookup extends MessageLookupByLibrary { static String m39(count) => "${Intl.plural(count, one: '${count} item', other: '${count} items')}"; + static String m83(email) => + "\$${email} has invited you to be a trusted contact"; + static String m40(expiryTime) => "Link will expire on ${expiryTime}"; static String m3(count, formattedCount) => @@ -157,7 +160,7 @@ class MessageLookup extends MessageLookupByLibrary { static String m52(storeName) => "Rate us on ${storeName}"; - static String m83(days) => + static String m84(days) => "You can access the account after ${days} days. You will get a notification on your registered email."; static String m53(storageInGB) => @@ -402,6 +405,8 @@ class MessageLookup extends MessageLookupByLibrary { "Please authenticate to configure two-factor authentication"), "authToInitiateAccountDeletion": MessageLookupByLibrary.simpleMessage( "Please authenticate to initiate account deletion"), + "authToManageLegacy": MessageLookupByLibrary.simpleMessage( + "Please authenticate to manage your trusted contacts"), "authToViewPasskey": MessageLookupByLibrary.simpleMessage( "Please authenticate to view your passkey"), "authToViewYourActiveSessions": MessageLookupByLibrary.simpleMessage( @@ -1027,6 +1032,7 @@ class MessageLookup extends MessageLookupByLibrary { "legacy": MessageLookupByLibrary.simpleMessage("Legacy"), "legacyAccounts": MessageLookupByLibrary.simpleMessage("Legacy accounts"), + "legacyInvite": m83, "legacyPageDesc": MessageLookupByLibrary.simpleMessage( "Legacy allows trusted contacts to access your account in your absence."), "legacyPageDesc2": MessageLookupByLibrary.simpleMessage( @@ -1358,7 +1364,7 @@ class MessageLookup extends MessageLookupByLibrary { MessageLookupByLibrary.simpleMessage("Recover account"), "recoveryInitiated": MessageLookupByLibrary.simpleMessage("Recovery initiated"), - "recoveryInitiatedDesc": m83, + "recoveryInitiatedDesc": m84, "recoveryKey": MessageLookupByLibrary.simpleMessage("Recovery key"), "recoveryKeyCopiedToClipboard": MessageLookupByLibrary.simpleMessage( "Recovery key copied to clipboard"), diff --git a/mobile/lib/generated/l10n.dart b/mobile/lib/generated/l10n.dart index 6389abee4a..8225f72ca6 100644 --- a/mobile/lib/generated/l10n.dart +++ b/mobile/lib/generated/l10n.dart @@ -10698,6 +10698,26 @@ class S { args: [], ); } + + /// `${email} has invited you to be a trusted contact` + String legacyInvite(Object email) { + return Intl.message( + '\$$email has invited you to be a trusted contact', + name: 'legacyInvite', + desc: '', + args: [email], + ); + } + + /// `Please authenticate to manage your trusted contacts` + String get authToManageLegacy { + return Intl.message( + 'Please authenticate to manage your trusted contacts', + name: 'authToManageLegacy', + desc: '', + args: [], + ); + } } class AppLocalizationDelegate extends LocalizationsDelegate { diff --git a/mobile/lib/l10n/intl_en.arb b/mobile/lib/l10n/intl_en.arb index 89e6d473b0..45f6fea8fd 100644 --- a/mobile/lib/l10n/intl_en.arb +++ b/mobile/lib/l10n/intl_en.arb @@ -1543,5 +1543,7 @@ "recoveryAccount":"Recover account", "cancelAccountRecoveryBody": "Are you sure you want to cancel recovery?", "startAccountRecoveryTitle": "Start recovery", - "whyAddTrustContact": "Trusted contact can help in recovering your data." + "whyAddTrustContact": "Trusted contact can help in recovering your data.", + "legacyInvite": "${email} has invited you to be a trusted contact", + "authToManageLegacy": "Please authenticate to manage your trusted contacts" } \ No newline at end of file diff --git a/mobile/lib/ui/settings/account_section_widget.dart b/mobile/lib/ui/settings/account_section_widget.dart index 1be5261895..2c67514268 100644 --- a/mobile/lib/ui/settings/account_section_widget.dart +++ b/mobile/lib/ui/settings/account_section_widget.dart @@ -157,7 +157,7 @@ class AccountSectionWidget extends StatelessWidget { await LocalAuthenticationService.instance .requestLocalAuthentication( context, - S.of(context).authToChangeYourPassword, + S.of(context).authToManageLegacy, ); if (hasAuthenticated) { Navigator.of(context).push(