Copy changes

This commit is contained in:
vishnukvmd
2024-12-10 08:58:27 -08:00
parent 8692421b9a
commit 7aedfb7e9b
5 changed files with 33 additions and 6 deletions

View File

@@ -493,8 +493,7 @@ class _EmergencyPageState extends State<EmergencyPage> {
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;

View File

@@ -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"),

View File

@@ -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<S> {

View File

@@ -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"
}

View File

@@ -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(