Docs iOS & macOS

iOS & macOS

Integrate i1n with iOS and macOS using .strings files.

Setup

Run i1n init in your Xcode project directory. The CLI detects Info.plist or .xcodeproj files and configures .strings format.

iOS and macOS use their native localization system — there is no i1n SDK for Swift/Objective-C. The CLI manages your .strings files directly.

Usage

Use NSLocalizedString or the String(localized:) API in Swift to access translations. i1n reads and writes standard Localizable.strings files in your .lproj directories.

Variable placeholders (%@, %d, %f) are automatically detected and protected during AI translation.

Workflow

Add strings to your source Localizable.strings file, push with i1n push, translate, and pull. Translated .strings files are written to the appropriate .lproj directories (e.g., es.lproj/, fr.lproj/).

Bridge Mode is not applicable to iOS/macOS — the platform uses its own native localization system. Works with both UIKit and SwiftUI projects.

Localizable.strings
/* Home Screen */
"home.title" = "Welcome";
"home.subtitle" = "Get started with i1n";

Related