Apple stringsdict

Learn how you can localize Apple .stringsdict files using Transifex.

T
Written by Transifex
Updated over a week ago

File Extension(s)

.stringsdict

i18n type(s)

STRINGSDICT

Encoding(s)

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>

⚠️Warning: Positional parameters are not currently supported for the Apple stringsdict file format.

📝 Note: Do you want to find out more about plurals in Transifex? Please check here.


Parser behavior

The following table outlines the expected return results of the various download modes depending on download mode.

*The results are compatible with parser version 1.

📝 Note: Proofreading must be enabled for this logic to take effect. To learn how to enable proofreading, click here.


Default placeholders

These are the default placeholders that you could have in your file, and they will be recognized:

match: ['%1$s', '%(key1)s', '%s', '%@', '%d', '%.2f', '%-5d', '%+2d']


Additional Information


💡Tip

Looking for more help? Get support from our Transifex Community Forum!

Find answers or post to get help from Transifex Support and our Community.

Did this answer your question?