iOS Localizable Stringsdict for pluralized translation keys

Localizable.stringsdict files for iOS app localization.

File Extensions .stringsdict
API Extension stringsdict
Format Options convert_placeholder
Import Yes
Export Yes
Pluralization supported? Yes
Descriptions/Comments supported? No

Example

<plist version="1.0">
<dict>
    <key>%d minutes</key>
    <dict>
        <key>NSStringLocalizedFormatKey</key>
        <string>%#@minutes@</string>
        <key>minutes</key>
        <dict>
            <key>NSStringFormatSpecTypeKey</key>
            <string>NSStringPluralRuleType</string>
            <key>NSStringFormatValueTypeKey</key>
            <string>d</string>
            <key>one</key>
            <string>%d minute</string>
            <key>other</key>
            <string>%d minutes</string>
        </dict>
    </dict>
    <key>%lu out of %lu Hasselhoff movies watched</key>
    <dict>
        <key>NSStringLocalizedFormatKey</key>
        <string>%1$#@lu_hasselhoff_viewings@</string>
        <key>lu_hasselhoff_viewings</key>
        <dict>
            <key>NSStringFormatSpecTypeKey</key>
            <string>NSStringPluralRuleType</string>
            <key>NSStringFormatValueTypeKey</key>
            <string>lu</string>
            <key>zero</key>
            <string>No Hasselhoff Movies? You are hassling the Hoff.</string>
            <key>one</key>
            <string>One %2$#@lu_movies@</string>
            <key>other</key>
            <string>%lu %2$#@lu_movies@</string>
        </dict>
        <key>lu_movies</key>
        <dict>
            <key>NSStringFormatSpecTypeKey</key>
            <string>NSStringPluralRuleType</string>
            <key>NSStringFormatValueTypeKey</key>
            <string>lu</string>
            <key>one</key>
            <string>Hasselhoff movie. Do Better.</string>
            <key>other</key>
            <string>of %lu Hasselhoff movies!</string>
        </dict>
    </dict>
</dict>
</plist>

Format Options

Option Type Upload Download Default Description
convert_placeholder boolean false Placeholder will be converted to match format specific requirements. Example: '$s' => '$@'

NOTE:

This format should only be used to provide alternate strings for languages that have different plural rules. To specify language plural rules that can’t be represented by key-value pairs in the iOS Localizable .strings file, use a .stringsdict file.


Further Reading

  • Apple Developers Localization Documentation