Introduction
A .stringsdict file holds the plural and width variants of an app’s
localised text on Apple platforms, used by apps built with Xcode.
It sits beside the .strings files in a
language folder, so that a phrase such as a count of files reads correctly in each
language.
Structure
The file is a property list. Its top-level dictionary maps each string key to its
variants. For plurals, NSStringLocalizedFormatKey gives a format string with
variables written as %#@name@, and each variable has a dictionary with text
for the plural categories zero, one, two,
few, many and other, of which other
is required. Width variants use NSStringVariableWidthRuleType.
Not described
This page is a first outline. The format is not yet described in full here.
Known, not yet covered
- Reference: every key and value type, and how plural categories apply to each language.
- Viewer: the site has no viewer for this format.
Links
Software
- Xcode – Apple’s development tool (macOS)
- Weblate – web translation tool that reads and writes stringsdict files
Reference
- The stringsdict file format – Apple’s Xcode help
- Stringsdict format – Weblate’s notes