You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello I am using the structured-swift5 strings template in my project, and when I try to generate the function for this string:
<key>a11y_read_receipts_multiple_with_others</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@COUNT@</string>
<key>COUNT</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>one</key>
<string>Read by %1$@ and %2$d other</string>
<key>other</key>
<string>Read by %1$@ and %2$d others</string>
</dict>
</dict>
Which contains both a string parameter and a plural parameter, swiftgen generates this:
/// Plural format key: "%#@COUNT@"
public static func a11yReadReceiptsMultipleWithOthers(_ p1: Int) -> String {
return L10n.tr("Localizable", "a11y_read_receipts_multiple_with_others", p1, fallback: "Plural format key: \"%#@COUNT@\"")
}
Which is missing the parameter for the string, and only including the parameter for the plural.
Howeve if I use the internal function directly like this: L10n.tr("Localizable", "a11y_read_receipts_multiple_with_others", list, timelineItem.properties.orderedReadReceipts.count)
Everything works as intended, so the issue is that both the signature and the internal implementations are generated incorrectly and are missing the string parameter.
NOTE: this dict has been gerated with the use of localazy CLI
The text was updated successfully, but these errors were encountered:
Hello I am using the structured-swift5 strings template in my project, and when I try to generate the function for this string:
Which contains both a string parameter and a plural parameter, swiftgen generates this:
Which is missing the parameter for the string, and only including the parameter for the plural.
Howeve if I use the internal function directly like this:
L10n.tr("Localizable", "a11y_read_receipts_multiple_with_others", list, timelineItem.properties.orderedReadReceipts.count)
Everything works as intended, so the issue is that both the signature and the internal implementations are generated incorrectly and are missing the string parameter.
NOTE: this dict has been gerated with the use of localazy CLI
The text was updated successfully, but these errors were encountered: