/swift-string-catalogs

Provides Xcode String Catalogs and relevant localization features for Linux & Windows

Primary LanguageSwiftApache License 2.0Apache-2.0

Xcode string catalogs are very powerful, but their accessibility is not available on other platforms other than Apple. This package fixes that.

Usage

let decoder:JSONDecoder = JSONDecoder()
guard let data:Data = FileManager.default.contents(atPath: path) else {
        return
}
let value:StringCatalog = try decoder.decode(StringCatalog.self, from: data)