Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use localized auth prompt for legacy entry

Neeraj Gupta21f7fbbe9da0
diff --git a/mobile/apps/locker/lib/ui/utils/legacy_utils.dart b/mobile/apps/locker/lib/ui/utils/legacy_utils.dart
index a5791afd07..9281acb0fa 100644
--- a/mobile/apps/locker/lib/ui/utils/legacy_utils.dart
+++ b/mobile/apps/locker/lib/ui/utils/legacy_utils.dart
@@ -4,6 +4,7 @@ import "package:ente_legacy/pages/emergency_page.dart";
import "package:ente_lock_screen/local_authentication_service.dart";
import "package:flutter/foundation.dart";
import "package:flutter/material.dart";
+import "package:locker/l10n/l10n.dart";
import "package:locker/services/configuration.dart";
/// Opens the Legacy (Emergency contacts) page after authenticating the user.
@@ -15,7 +16,7 @@ Future<void> openLegacyPage(BuildContext context) async {
hasAuthenticatedForLegacyFlow =
await LocalAuthenticationService.instance.requestLocalAuthentication(
context,
- "Authenticate to manage legacy contacts",
+ context.l10n.authToManageLegacy,
);
}
if (hasAuthenticatedForLegacyFlow && context.mounted) {