补充key

This commit is contained in:
2026-03-07 13:43:26 +08:00
parent cbcf8c4197
commit 6327f31f11
12 changed files with 49 additions and 20 deletions

View File

@@ -77,7 +77,7 @@
}
- (void)configTitle:(NSString *)title currency:(NSString *)currency price:(NSString *)price strike:(nullable NSString *)strike {
self.titleLabel.text = title.length ? title : @"1 Month";
self.titleLabel.text = title.length ? title : KBLocalized(@"Monthly Subscription");
self.currencyLabel.text = currency.length ? currency : @"$";
self.priceLabel.text = price.length ? price : @"6.90";
self.strikeLabel.hidden = (strike.length == 0);
@@ -121,7 +121,7 @@
- (UILabel *)titleLabel {
if (!_titleLabel) {
_titleLabel = [UILabel new];
_titleLabel.text = @"1 Month";
_titleLabel.text = KBLocalized(@"Monthly Subscription");
_titleLabel.textColor = [UIColor colorWithHex:KBBlackValue];
_titleLabel.font = [KBFont medium:13];
}

View File

@@ -61,8 +61,8 @@
}
- (void)configWithName:(NSString *)name text:(NSString *)text {
self.nameLabel.text = name.length ? name : @"User";
self.contentLabel.text = text.length ? text : @"I highly recommend this app.";
self.nameLabel.text = name.length ? name : KBLocalized(@"User");
self.contentLabel.text = text.length ? text : KBLocalized(@"I highly recommend this app.");
}
#pragma mark - Lazy
@@ -87,7 +87,7 @@
_nameLabel = [UILabel new];
_nameLabel.textColor = [UIColor colorWithHex:KBBlackValue];
_nameLabel.font = [KBFont medium:13];
_nameLabel.text = @"Sdsd666";
_nameLabel.text = KBLocalized(@"User");
}
return _nameLabel;
}
@@ -117,10 +117,9 @@
_contentLabel.textColor = [UIColor colorWithHex:KBBlackValue];
_contentLabel.font = [KBFont regular:10];
_contentLabel.numberOfLines = 2;
_contentLabel.text = @"I Highly Recommend This App. It Taught Me How To Chat";
_contentLabel.text = KBLocalized(@"I highly recommend this app.");
}
return _contentLabel;
}
@end