NeoIQ Localize

Xcode Stringsdict

NeoIQ Localize supports Xcode's Stringsdict format, used for complex pluralization rules in iOS and macOS applications. This format handles plural forms, variable substitutions, and language-specific plural rules.


Setting Up

First, make sure you've got a neoiq-localize.json config file in your project root. Here's an example:

{
  "locale": {
    "source": "en",
    "targets": ["sv", "de", "fr"]
  },
  "files": {
    "stringsdict": {
      "include": ["MyApp/Localizable.stringsdict"]
    }
  }
}

Translating

With your config set, run:

npx @neoiq/localize@latest translate

When you run this command, NeoIQ Localize will:

  • Load your Stringsdict files
  • Detect any new or modified plural rules
  • Generate translations for your target languages
  • Update the Stringsdict files with new translations
  • Handle complex plural rules for each language
  • Maintain variable substitutions
  • Preserve dictionary structure
  • Support language-specific plural forms
  • Validate plural rules consistency
  • Keep formatting specifiers

How is this guide?

Edit on GitHub

Last updated on

On this page