Swift Package Manager
Add the SDK to your project via SPM — the recommended way to install. No source code, just a prebuilt binary package.
View SPM Package on GitHubA static XCFramework for iOS that delivers over-the-air translations to your app. Download the SDK, add it to your Xcode project, and start syncing translations in minutes.
Add the SDK to your project via SPM — the recommended way to install. No source code, just a prebuilt binary package.
View SPM Package on GitHubPrebuilt static XCFramework for iOS (arm64) and Simulator (arm64 + x86_64). For manual installation.
Download ProjectLocale.xcframework.zipA complete Xcode project that demonstrates SDK integration — configure, sync, and display translations with SwiftUI.
View on GitHubhttps://github.com/biometricid/p-locale.euOr add to your Package.swift: .package(url: "https://github.com/biometricid/p-locale.eu", from: "1.1.0")
ProjectLocale.xcframework into your Xcode projectConfigure the SDK once on app launch, then use L10nText in SwiftUI or L10n.string() anywhere.
import ProjectLocale // 1. Configure on launch try L10n.configure( apiKey: "pl_your_api_key", serverURL: URL(string: "https://p-locale.eu")!, environment: "prod", appVersion: Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ) // 2. Sync translations let info = try await L10n.projectInfo() let synced = try await L10n.syncAll() // 3. Use in SwiftUI L10nText("common/welcome_title", default: "Welcome") // 4. Use anywhere let title = L10n.string("common/welcome_title", default: "Welcome") // 5. Switch language L10n.setLanguage("uk")
pl_...) is displayed thereL10n.configure() on app launch304 — zero traffic