• Documentation
  • File formats
  • Apple stringsdict

Apple stringsdict

  • Associated file extensions: .stringsdict
  • i18n type: STRINGSDICT
  • Encoding: UTF-8

The .stringsdict file is a .plist file that consists of key-value pairs.

It allows you to define language plural rules since it stores all plural forms of a string.

Sample data

English localization file:

<plist version="1.0">
    <dict>
        <key>period_years_%d</key>
        <dict>
            <key>NSStringLocalizedFormatKey</key>
            <string>%#@years@</string>
            <key>years</key>
            <dict>
                <key>NSStringFormatSpecTypeKey</key>
                <string>NSStringPluralRuleType</string>
                <key>NSStringFormatValueTypeKey</key>
                <string>d</string>
                <key>one</key>
                <string>%d year</string>
                <key>other</key>
                <string>%d years</string>
            </dict>
        </dict>
    </dict>
</plist>

Russian localization file:

<plist version="1.0">
    <dict>
        <key>period_years_%d</key>
        <dict>
            <key>NSStringLocalizedFormatKey</key>
            <string>%#@years@</string>
            <key>years</key>
            <dict>
                <key>NSStringFormatSpecTypeKey</key>
                <string>NSStringPluralRuleType</string>
                <key>NSStringFormatValueTypeKey</key>
                <string>d</string>
                <key>one</key>
                <string>%d year</string>
                <key>few</key>
                <string>%d лет</string>
                <key>many</key>
                <string>%d лет</string>
                <key>other</key>
                <string>%d лет</string>
            </dict>
        </dict>
    </dict>
</plist>