Browse Source

l10n: extract SkipSubscriptionWidget strings

Neeraj Gupta 2 years ago
parent
commit
098bfb7366

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

@@ -268,6 +268,8 @@ class MessageLookup extends MessageLookupByLibrary {
             MessageLookupByLibrary.simpleMessage("Contact support"),
             MessageLookupByLibrary.simpleMessage("Contact support"),
         "contactToManageSubscription": m3,
         "contactToManageSubscription": m3,
         "continueLabel": MessageLookupByLibrary.simpleMessage("Continue"),
         "continueLabel": MessageLookupByLibrary.simpleMessage("Continue"),
+        "continueOnFreeTrial":
+            MessageLookupByLibrary.simpleMessage("Continue on free trial"),
         "copyLink": MessageLookupByLibrary.simpleMessage("Copy link"),
         "copyLink": MessageLookupByLibrary.simpleMessage("Copy link"),
         "copypasteThisCodentoYourAuthenticatorApp":
         "copypasteThisCodentoYourAuthenticatorApp":
             MessageLookupByLibrary.simpleMessage(
             MessageLookupByLibrary.simpleMessage(

+ 10 - 0
lib/generated/l10n.dart

@@ -4228,6 +4228,16 @@ class S {
       args: [providerName],
       args: [providerName],
     );
     );
   }
   }
+
+  /// `Continue on free trial`
+  String get continueOnFreeTrial {
+    return Intl.message(
+      'Continue on free trial',
+      name: 'continueOnFreeTrial',
+      desc: '',
+      args: [],
+    );
+  }
 }
 }
 
 
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {

+ 2 - 1
lib/l10n/intl_en.arb

@@ -616,5 +616,6 @@
         "type": "String"
         "type": "String"
       }
       }
     }
     }
-  }
+  },
+  "continueOnFreeTrial": "Continue on free trial"
 }
 }

+ 2 - 1
lib/ui/payment/skip_subscription_widget.dart

@@ -1,6 +1,7 @@
 import 'package:flutter/material.dart';
 import 'package:flutter/material.dart';
 import 'package:photos/core/event_bus.dart';
 import 'package:photos/core/event_bus.dart';
 import 'package:photos/events/subscription_purchased_event.dart';
 import 'package:photos/events/subscription_purchased_event.dart';
+import "package:photos/generated/l10n.dart";
 import 'package:photos/models/billing_plan.dart';
 import 'package:photos/models/billing_plan.dart';
 import 'package:photos/models/subscription.dart';
 import 'package:photos/models/subscription.dart';
 import 'package:photos/services/billing_service.dart';
 import 'package:photos/services/billing_service.dart';
@@ -42,7 +43,7 @@ class SkipSubscriptionWidget extends StatelessWidget {
           BillingService.instance
           BillingService.instance
               .verifySubscription(freeProductID, "", paymentProvider: "ente");
               .verifySubscription(freeProductID, "", paymentProvider: "ente");
         },
         },
-        child: const Text("Continue on free trial"),
+        child: Text(S.of(context).continueOnFreeTrial),
       ),
       ),
     );
     );
   }
   }