|
@@ -49,8 +49,21 @@ class KMFreeGetAIWC: NSWindowController {
|
|
|
// MARK: Private Method
|
|
|
|
|
|
private func languageLocalized() -> Void {
|
|
|
+ var productPrice = ""
|
|
|
+#if VERSION_FREE
|
|
|
+#if VERSION_DMG
|
|
|
+ productPrice = KMProductModel.shared.getProductPrice(.pdfReaderProStandard_dmg)
|
|
|
+#else
|
|
|
+ productPrice = IAPProductsManager.default().aiAllAccessPack12month_lite.price()
|
|
|
+#endif
|
|
|
+#else
|
|
|
+ productPrice = IAPProductsManager.default().aiAllAccessPack12month_pro.price()
|
|
|
+#endif
|
|
|
+ let firmString = NSLocalizedString("Free for the first year, then automatically renew at %@ annually. You can cancel your subscription anytime.", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ let fireFullString = String(format: firmString, productPrice)
|
|
|
+
|
|
|
titleLabel1.stringValue = NSLocalizedString("1-Year AI Tools Giveaway", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
- subTitle1.stringValue = String(format: " · %@", NSLocalizedString("Free for the first year, then automatically renew at $125.99 annually. You can cancel your subscription anytime.", tableName: "MemberCenterLocalizable", comment: ""))
|
|
|
+ subTitle1.stringValue = String(format: " · %@", fireFullString)
|
|
|
subTitle2.stringValue = String(format: " · %@", NSLocalizedString("Free for the first year, then auto-renewal at $125.99 per year. You can cancel your subscription anytime.", tableName: "MemberCenterLocalizable", comment: ""))
|
|
|
subTitle3.stringValue = String(format: " · %@", NSLocalizedString("Pick up free AI Tools before 23:59:00, or it will be invalid", tableName: "MemberCenterLocalizable", comment: ""))
|
|
|
aitoolsLabel.stringValue = NSLocalizedString("Get 1-Year AI Tools with $0", tableName: "MemberCenterLocalizable", comment: "")
|