π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[auth] Extract strings
Neeraj Guptab12371437f36
diff --git a/auth/lib/l10n/arb/app_en.arb b/auth/lib/l10n/arb/app_en.arbindex 4f42e79e51..c891ddebac 100644--- a/auth/lib/l10n/arb/app_en.arb+++ b/auth/lib/l10n/arb/app_en.arb@@ -258,6 +258,10 @@"areYouSureYouWantToLogout": "Are you sure you want to logout?","yesLogout": "Yes, logout","exit": "Exit",+ "theme": "Theme",+ "lightTheme": "Light",+ "darkTheme": "Dark",+ "systemTheme": "System","verifyingRecoveryKey": "Verifying recovery key...","recoveryKeyVerified": "Recovery key verified","recoveryKeySuccessBody": "Great! Your recovery key is valid. Thank you for verifying.\n\nPlease remember to keep your recovery key safely backed up.",diff --git a/auth/lib/ui/settings/theme_switch_widget.dart b/auth/lib/ui/settings/theme_switch_widget.dartindex c0495b65b6..6607926db2 100644--- a/auth/lib/ui/settings/theme_switch_widget.dart+++ b/auth/lib/ui/settings/theme_switch_widget.dart@@ -1,7 +1,6 @@--import 'package:adaptive_theme/adaptive_theme.dart';import 'package:ente_auth/ente_theme_data.dart';+import 'package:ente_auth/l10n/l10n.dart';import 'package:ente_auth/theme/ente_theme.dart';import 'package:ente_auth/ui/components/captioned_text_widget.dart';import 'package:ente_auth/ui/components/expandable_menu_item_widget.dart';@@ -42,7 +41,7 @@ class _ThemeSwitchWidgetState extends State<ThemeSwitchWidget> {@overrideWidget build(BuildContext context) {return ExpandableMenuItemWidget(- title: "Theme",+ title: context.l10n.theme,selectionOptionsWidget: _getSectionOptions(context),leadingIcon: Theme.of(context).brightness == Brightness.light? Icons.light_mode_outlined@@ -64,10 +63,21 @@ class _ThemeSwitchWidgetState extends State<ThemeSwitchWidget> {);}+ String _name(BuildContext ctx, AdaptiveThemeMode mode) {+ switch (mode) {+ case AdaptiveThemeMode.light:+ return ctx.l10n.lightTheme;+ case AdaptiveThemeMode.dark:+ return ctx.l10n.darkTheme;+ case AdaptiveThemeMode.system:+ return ctx.l10n.systemTheme;+ }+ }+Widget _menuItem(BuildContext context, AdaptiveThemeMode themeMode) {return MenuItemWidget(captionedTextWidget: CaptionedTextWidget(- title: toBeginningOfSentenceCase(themeMode.name)!,+ title: _name(context, themeMode),textStyle: Theme.of(context).colorScheme.enteTheme.textTheme.body,),pressedColor: getEnteColorScheme(context).fillFaint,