π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[auth] Extract strings
Aman Raj Singh Mourya85f407ff7dec
diff --git a/auth/lib/l10n/arb/app_en.arb b/auth/lib/l10n/arb/app_en.arbindex 6b0e95d650..a51ec12366 100644--- a/auth/lib/l10n/arb/app_en.arb+++ b/auth/lib/l10n/arb/app_en.arb@@ -504,5 +504,13 @@"deselectAll": "Deselect all","selectAll": "Select all","deleteDuplicates": "Delete duplicates",- "plainHTML": "Plain HTML"+ "plainHTML": "Plain HTML",+ "tellUsWhatYouThink": "Tell us what you think",+ "dropReview": "Drop a review on the App/Play Store",+ "supportEnte": "Support <bold-green>ente</bold-green>",+ "giveUsAStarOnGithub": "Give us a star on Github",+ "free5GB": "5GB free on <bold-green>ente</bold-green> Photos",+ "loginWithAuthAccount": "Login with your Auth account",+ "freeStorageOffer": "10% off on <bold-green>ente</bold-green> photos",+ "freeStorageOfferDescription": "Use code \"AUTH\" to get 10% off first year"}\ No newline at end of filediff --git a/auth/lib/ui/settings/notification_banner_widget.dart b/auth/lib/ui/settings/notification_banner_widget.dartindex 292de86cc3..9e6ab8f7b3 100644--- a/auth/lib/ui/settings/notification_banner_widget.dart+++ b/auth/lib/ui/settings/notification_banner_widget.dart@@ -1,4 +1,5 @@import 'package:ente_auth/core/configuration.dart';+import 'package:ente_auth/l10n/l10n.dart';import 'package:ente_auth/models/user_details.dart';import 'package:ente_auth/services/preference_service.dart';import 'package:ente_auth/services/user_service.dart';@@ -17,6 +18,7 @@ class NotificationBannerWidget extends StatelessWidget {final differenceInDays = currentTime.difference(DateTime.fromMillisecondsSinceEpoch(appInstallTime)).inDays;+ final l10n = context.l10n;if (Configuration.instance.hasConfiguredAccount()) {return FutureBuilder<UserDetails>(@@ -31,15 +33,15 @@ class NotificationBannerWidget extends StatelessWidget {contents.clear();contents.addAll([- const BannerWidget(- text: "Tell us what you think",- subText: "Drop a review on the App/Play Store",+ BannerWidget(+ text: l10n.tellUsWhatYouThink,+ subText: l10n.dropReview,type: BannerType.rateUs,),sectionSpacing,- const BannerWidget(- text: "Support <bold-green>ente</bold-green>",- subText: "Give us a star on Github",+ BannerWidget(+ text: l10n.supportEnte,+ subText: l10n.giveUsAStarOnGithub,type: BannerType.starUs,),],@@ -50,9 +52,9 @@ class NotificationBannerWidget extends StatelessWidget {contents.clear();contents.addAll([- const BannerWidget(- text: "5GB free on <bold-green>ente</bold-green> Photos",- subText: "Login with your Auth account",+ BannerWidget(+ text: l10n.free5GB,+ subText: l10n.loginWithAuthAccount,type: BannerType.freeStorage,),],@@ -61,9 +63,9 @@ class NotificationBannerWidget extends StatelessWidget {userDetails.subscription.productID == 'free') {contents.addAll([- const BannerWidget(- text: "10% off on <bold-green>ente</bold-green> photos",- subText: "Use code βAUTHβ to get 10% off first year",+ BannerWidget(+ text: l10n.freeStorageOffer,+ subText: l10n.freeStorageOfferDescription,type: BannerType.discount,),],@@ -80,15 +82,15 @@ class NotificationBannerWidget extends StatelessWidget {contents.clear();contents.addAll([- const BannerWidget(- text: "Tell us what you think",- subText: "Drop a review on the App/Play Store",+ BannerWidget(+ text: l10n.tellUsWhatYouThink,+ subText: l10n.dropReview,type: BannerType.rateUs,),sectionSpacing,- const BannerWidget(- text: "Support <bold-green>ente</bold-green>",- subText: "Give us a star on Github",+ BannerWidget(+ text: l10n.supportEnte,+ subText: l10n.giveUsAStarOnGithub,type: BannerType.starUs,),],