Skip to main content
Apple .stringsdict files describe plural and variable-dependent messages in plist XML. Use them alongside .strings resources when an iOS or macOS message needs different grammatical forms. Supported extensions: .stringsdict.

Source file

Save this example as locales/en-US/messages.stringsdict.

Configure your files

Use this i18n.yml for the example, or add its file mapping to your existing bucket. See path templates for other layouts.

Translate

Install the CLI and set OPENAI_API_KEY in your project’s .env.local or shell. You can also configure another AI provider.
The dry run previews the work. The second command writes translations to the configured target path and updates the lockfile.

Behavior and limitations

  • Translatable string leaves become dotted keys such as items.count.one. Plural category names remain part of the key.
  • NSString* fields are structural metadata and are excluded from translation.
  • Each %#@token@ must match a sibling substitution dictionary. Writeback preserves XML layout and replaces message text.

Next steps