@@ -15,49 +15,81 @@ public FormattingLocalized(global::Microsoft.Extensions.Localization.IStringLoca
1515 /// <summary>
1616 /// Today is {0:MMM dd yyyy}
1717 /// </summary>
18- public string DateFormatMessage => this . localizer [ "DateFormatMessage" ] ;
18+ public string DateFormatMessageFormat ( object parameter0 )
19+ {
20+ return string . Format ( this . localizer [ "DateFormatMessage" ] , parameter0 ) ;
21+ }
22+
1923 /// <summary>
2024 /// Total cost: {0:C2}
2125 /// </summary>
22- public string CurrencyFormatMessage => this . localizer [ "CurrencyFormatMessage" ] ;
26+ public string CurrencyFormatMessageFormat ( object parameter0 )
27+ {
28+ return string . Format ( this . localizer [ "CurrencyFormatMessage" ] , parameter0 ) ;
29+ }
30+
2331 /// <summary>
2432 /// Success rate: {0:P2}
2533 /// </summary>
26- public string PercentageFormatMessage => this . localizer [ "PercentageFormatMessage" ] ;
34+ public string PercentageFormatMessageFormat ( object parameter0 )
35+ {
36+ return string . Format ( this . localizer [ "PercentageFormatMessage" ] , parameter0 ) ;
37+ }
38+
2739 /// <summary>
2840 /// Value: {0:N2}
2941 /// </summary>
30- public string NumberFormatMessage => this . localizer [ "NumberFormatMessage" ] ;
42+ public string NumberFormatMessageFormat ( object parameter0 )
43+ {
44+ return string . Format ( this . localizer [ "NumberFormatMessage" ] , parameter0 ) ;
45+ }
46+
3147 /// <summary>
3248 /// Event scheduled for {0:yyyy-MM-dd HH:mm:ss}
3349 /// </summary>
34- public string CustomDateTimeFormat => this . localizer [ "CustomDateTimeFormat" ] ;
50+ public string CustomDateTimeFormatFormat ( object parameter0 )
51+ {
52+ return string . Format ( this . localizer [ "CustomDateTimeFormat" ] , parameter0 ) ;
53+ }
54+
3555 /// <summary>
3656 /// Date: {0:MMM dd yyyy}, Amount: {1:C2}, Rate: {2:P1}
3757 /// </summary>
38- public string MixedFormattingMessage => this . localizer [ "MixedFormattingMessage" ] ;
58+ public string MixedFormattingMessageFormat ( object parameter0 , object parameter1 , object parameter2 )
59+ {
60+ return string . Format ( this . localizer [ "MixedFormattingMessage" ] , parameter0 , parameter1 , parameter2 ) ;
61+ }
62+
3963 /// <summary>
4064 /// From {0:yyyy-MM-dd} to {1:yyyy-MM-dd}
4165 /// </summary>
42- public string DateRangeMessage => this . localizer [ "DateRangeMessage" ] ;
66+ public string DateRangeMessageFormat ( object parameter0 , object parameter1 )
67+ {
68+ return string . Format ( this . localizer [ "DateRangeMessage" ] , parameter0 , parameter1 ) ;
69+ }
70+
4371 /// <summary>
4472 /// Report generated on {0:dddd, MMMM dd, yyyy} at {1:HH:mm:ss} for user {2}
4573 /// </summary>
46- public string DetailedReportMessageFormat ( object parameter2 )
74+ public string DetailedReportMessageFormat ( object parameter0 , object parameter1 , object parameter2 )
4775 {
48- return string . Format ( this . localizer [ "DetailedReportMessage" ] , parameter2 ) ;
76+ return string . Format ( this . localizer [ "DetailedReportMessage" ] , parameter0 , parameter1 , parameter2 ) ;
4977 }
5078
5179 /// <summary>
5280 /// Start: {0:HH:mm}, End: {0:HH:mm:ss}
5381 /// </summary>
54- public string RepeatedFormattedParameter => this . localizer [ "RepeatedFormattedParameter" ] ;
82+ public string RepeatedFormattedParameterFormat ( object parameter0 )
83+ {
84+ return string . Format ( this . localizer [ "RepeatedFormattedParameter" ] , parameter0 ) ;
85+ }
86+
5587 /// <summary>
5688 /// User {0} logged in at {1:yyyy-MM-dd HH:mm} from location {2}
5789 /// </summary>
58- public string MixedParameterTypesFormat ( object parameter0 , object parameter2 )
90+ public string MixedParameterTypesFormat ( object parameter0 , object parameter1 , object parameter2 )
5991 {
60- return string . Format ( this . localizer [ "MixedParameterTypes" ] , parameter0 , parameter2 ) ;
92+ return string . Format ( this . localizer [ "MixedParameterTypes" ] , parameter0 , parameter1 , parameter2 ) ;
6193 }
6294
6395}
0 commit comments