Actually, it works on iOS 8.4. We also use the .strinsgdict format. So I added this code:
<key>points-usage-message</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@ points@ </string> <key>points</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>one</key> <string>%d point will be deducted</string> <key>other</key> <string>%d points will be deducted</string> </dict> </dict>
to our file, and it works correctly when I got it using this code:
[NSString localizedStringWithFormat:NSLocalizedString(@"points-usage-message", nil), 42];
or fast:
let localizedFormat = NSLocalizedString("points-usage-message", comment: "") let pointsInfo = String.localizedStringWithFormat(localizedFormat, 42)
Please try this code and share the results. In addition, you can additionally try to check the membership and localization of the target .strinsgdict file (must be installed in any country).
source share