浏览代码

Extract strings

Neeraj Gupta 1 年之前
父节点
当前提交
172fc66f76
共有 4 个文件被更改,包括 29 次插入3 次删除
  1. 4 0
      lib/generated/intl/messages_en.dart
  2. 20 0
      lib/generated/l10n.dart
  3. 3 1
      lib/l10n/intl_en.arb
  4. 2 2
      lib/ui/settings_page.dart

+ 4 - 0
lib/generated/intl/messages_en.dart

@@ -347,6 +347,8 @@ class MessageLookup extends MessageLookupByLibrary {
         "backupSettings":
             MessageLookupByLibrary.simpleMessage("Backup settings"),
         "backupVideos": MessageLookupByLibrary.simpleMessage("Backup videos"),
+        "blackFridaySale":
+            MessageLookupByLibrary.simpleMessage("Black Friday Sale"),
         "blog": MessageLookupByLibrary.simpleMessage("Blog"),
         "cachedData": MessageLookupByLibrary.simpleMessage("Cached data"),
         "calculating": MessageLookupByLibrary.simpleMessage("Calculating..."),
@@ -1318,6 +1320,8 @@ class MessageLookup extends MessageLookupByLibrary {
         "upgrade": MessageLookupByLibrary.simpleMessage("Upgrade"),
         "uploadingFilesToAlbum":
             MessageLookupByLibrary.simpleMessage("Uploading files to album..."),
+        "upto50OffUntil4thDec": MessageLookupByLibrary.simpleMessage(
+            "Upto 50% off, until 4th Dec."),
         "usableReferralStorageInfo": MessageLookupByLibrary.simpleMessage(
             "Usable storage is limited by your current plan. Excess claimed storage will automatically become usable when you upgrade your plan."),
         "usePublicLinksForPeopleNotOnEnte":

+ 20 - 0
lib/generated/l10n.dart

@@ -7774,6 +7774,26 @@ class S {
       args: [],
     );
   }
+
+  /// `Black Friday Sale`
+  String get blackFridaySale {
+    return Intl.message(
+      'Black Friday Sale',
+      name: 'blackFridaySale',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Upto 50% off, until 4th Dec.`
+  String get upto50OffUntil4thDec {
+    return Intl.message(
+      'Upto 50% off, until 4th Dec.',
+      name: 'upto50OffUntil4thDec',
+      desc: '',
+      args: [],
+    );
+  }
 }
 
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {

+ 3 - 1
lib/l10n/intl_en.arb

@@ -1108,5 +1108,7 @@
   "hearUsExplanation": "We don't track app installs. It'd help if you told us where you found us!",
   "viewAddOnButton": "View add-ons",
   "addOns": "Add-ons",
-  "addOnPageSubtitle": "Details of add-ons"
+  "addOnPageSubtitle": "Details of add-ons",
+  "blackFridaySale": "Black Friday Sale",
+  "upto50OffUntil4thDec": "Upto 50% off, until 4th Dec."
 }

+ 2 - 2
lib/ui/settings_page.dart

@@ -100,8 +100,8 @@ class SettingsPage extends StatelessWidget {
                           isBlackFriday: true,
                           startIcon: Icons.celebration,
                           actionIcon: Icons.arrow_forward_outlined,
-                          text: "Black Friday Sale",
-                          subText: "Upto 50% off!",
+                          text: S.of(context).blackFridaySale,
+                          subText: S.of(context).upto50OffUntil4thDec,
                           type: NotificationType.goldenBanner,
                           onTap: () async {
                             launchUrlString(