Commit 99691eb0c990068815cbeba5f75791defa4aae26

Authored by 常守达
1 parent 895ecba8

fix(ui): 国际化提取

@@ -88,7 +88,8 @@ class MembershipOfferView extends GetView<MembershipOfferController> { @@ -88,7 +88,8 @@ class MembershipOfferView extends GetView<MembershipOfferController> {
88 : Column( 88 : Column(
89 children: [ 89 children: [
90 Text( 90 Text(
91 - '原价${_originDisplayPrice(yearInfo)}/年', 91 + context.l10n.originalPricePerYear(
  92 + _originDisplayPrice(yearInfo)),
92 textAlign: TextAlign.center, 93 textAlign: TextAlign.center,
93 style: const TextStyle( 94 style: const TextStyle(
94 color: Color(0xFF78787D), 95 color: Color(0xFF78787D),
@@ -772,5 +772,14 @@ @@ -772,5 +772,14 @@
772 "healthLocalNotificationRealtimeStressOverloadContent": "You stayed in a high-stress state over the past 60 minutes. Reduce exertion and prioritize rest and sleep.", 772 "healthLocalNotificationRealtimeStressOverloadContent": "You stayed in a high-stress state over the past 60 minutes. Reduce exertion and prioritize rest and sleep.",
773 "turnOnNotifications": "Turn on Notifications", 773 "turnOnNotifications": "Turn on Notifications",
774 "stayUpToDateOnChangesInYourOwnAndYourFriendsHealth": "Stay up to date on changes in your own and your friends' health", 774 "stayUpToDateOnChangesInYourOwnAndYourFriendsHealth": "Stay up to date on changes in your own and your friends' health",
775 - "refreshComplete": "Refresh Complete" 775 + "refreshComplete": "Refresh Complete",
  776 + "originalPricePerYear": "Was: {price}/year",
  777 + "@originalPricePerYear": {
  778 + "description": "Original price per year label",
  779 + "placeholders": {
  780 + "price": {
  781 + "type": "String"
  782 + }
  783 + }
  784 + }
776 } 785 }
@@ -1165,5 +1165,14 @@ @@ -1165,5 +1165,14 @@
1165 "healthLocalNotificationRealtimeStressOverloadContent": "你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠。", 1165 "healthLocalNotificationRealtimeStressOverloadContent": "你过去60分钟持续处于高压力状态,建议减少消耗,并优先保证休息与睡眠。",
1166 "turnOnNotifications": "开启通知", 1166 "turnOnNotifications": "开启通知",
1167 "stayUpToDateOnChangesInYourOwnAndYourFriendsHealth": "及时了解自己和好友的健康波动", 1167 "stayUpToDateOnChangesInYourOwnAndYourFriendsHealth": "及时了解自己和好友的健康波动",
1168 - "refreshComplete": "刷新完成" 1168 + "refreshComplete": "刷新完成",
  1169 + "originalPricePerYear": "原价{price}/年",
  1170 + "@originalPricePerYear": {
  1171 + "description": "原价每年标签",
  1172 + "placeholders": {
  1173 + "price": {
  1174 + "type": "String"
  1175 + }
  1176 + }
  1177 + }
1169 } 1178 }
@@ -4155,6 +4155,12 @@ abstract class AppLocalizations { @@ -4155,6 +4155,12 @@ abstract class AppLocalizations {
4155 /// In zh, this message translates to: 4155 /// In zh, this message translates to:
4156 /// **'刷新完成'** 4156 /// **'刷新完成'**
4157 String get refreshComplete; 4157 String get refreshComplete;
  4158 +
  4159 + /// 原价每年标签
  4160 + ///
  4161 + /// In zh, this message translates to:
  4162 + /// **'原价{price}/年'**
  4163 + String originalPricePerYear(String price);
4158 } 4164 }
4159 4165
4160 class _AppLocalizationsDelegate 4166 class _AppLocalizationsDelegate
@@ -2339,4 +2339,9 @@ class AppLocalizationsEn extends AppLocalizations { @@ -2339,4 +2339,9 @@ class AppLocalizationsEn extends AppLocalizations {
2339 2339
2340 @override 2340 @override
2341 String get refreshComplete => 'Refresh Complete'; 2341 String get refreshComplete => 'Refresh Complete';
  2342 +
  2343 + @override
  2344 + String originalPricePerYear(String price) {
  2345 + return 'Was: $price/year';
  2346 + }
2342 } 2347 }
@@ -2235,4 +2235,9 @@ class AppLocalizationsZh extends AppLocalizations { @@ -2235,4 +2235,9 @@ class AppLocalizationsZh extends AppLocalizations {
2235 2235
2236 @override 2236 @override
2237 String get refreshComplete => '刷新完成'; 2237 String get refreshComplete => '刷新完成';
  2238 +
  2239 + @override
  2240 + String originalPricePerYear(String price) {
  2241 + return '原价$price/年';
  2242 + }
2238 } 2243 }