Neeraj Gupta пре 2 година
родитељ
комит
10a26131ac
2 измењених фајлова са 5 додато и 3 уклоњено
  1. 2 0
      lib/l10n/arb/app_en.arb
  2. 3 3
      lib/ui/settings/security_section_widget.dart

+ 2 - 0
lib/l10n/arb/app_en.arb

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

+ 3 - 3
lib/ui/settings/security_section_widget.dart

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