Extract string

This commit is contained in:
Neeraj Gupta
2023-08-02 16:33:10 +05:30
parent 8394ec72ce
commit 10a26131ac
2 changed files with 5 additions and 3 deletions

View File

@@ -87,6 +87,8 @@
"importInstruction": "Please select a file that contains a list of your codes in the following format",
"importCodeDelimiterInfo": "The codes can be separated by a comma or a new line",
"selectFile": "Select file",
"emailVerificationToggle": "Email verification",
"authToChangeEmailVerificationSetting": "Please authenticate to change email verification",
"authToViewYourRecoveryKey": "Please authenticate to view your recovery key",
"authToChangeYourEmail": "Please authenticate to change your email",
"authToChangeYourPassword": "Please authenticate to change your password",

View File

@@ -74,8 +74,8 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
sectionOptionSpacing,
if(canDisableMFA)
MenuItemWidget(
captionedTextWidget: const CaptionedTextWidget(
title: "Email MFA",
captionedTextWidget: CaptionedTextWidget(
title: l10n.emailVerificationToggle,
),
trailingWidget: ToggleSwitchWidget(
value: () => UserService.instance.hasEmailMFAEnabled(),
@@ -84,7 +84,7 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
.instance
.requestLocalAuthentication(
context,
"Authenticate to change your email MFA setting",
l10n.authToChangeEmailVerificationSetting,
);
final isEmailMFAEnabled =
UserService.instance.hasEmailMFAEnabled();