Skip to content

armgit / ente

Public Imported from GitHub
0

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

[auth] Extract strings

Aman Raj Singh Mourya9afb59ea8779
diff --git a/auth/lib/l10n/arb/app_en.arb b/auth/lib/l10n/arb/app_en.arb
index 06b5e42c44..3b0f8a7139 100644
--- a/auth/lib/l10n/arb/app_en.arb
+++ b/auth/lib/l10n/arb/app_en.arb
@@ -466,5 +466,7 @@
"pinLock": "Pin lock",
"enterPin": "Enter PIN",
"setNewPin": "Set new PIN",
- "importFailureDescNew": "Could not parse the selected file."
+ "importFailureDescNew": "Could not parse the selected file.",
+ "appLockNotEnabled": "App lock not enabled",
+ "appLockNotEnabledDescription": "Please enable app lock from Security > App Lock"
}
\ No newline at end of file
diff --git a/auth/lib/ui/home_page.dart b/auth/lib/ui/home_page.dart
index f480365172..f2c5222da3 100644
--- a/auth/lib/ui/home_page.dart
+++ b/auth/lib/ui/home_page.dart
@@ -211,8 +211,8 @@ class _HomePageState extends State<HomePage> {
} else {
await showDialogWidget(
context: context,
- title: "No app lock enabled",
- body: "Please enable app lock from Security > App Lock",
+ title: context.l10n.appLockNotEnabled,
+ body: context.l10n.appLockNotEnabledDescription,
isDismissible: true,
buttons: const [
ButtonWidget(