https://github.com/randomhashtags/swift-string-catalogs
Provides Xcode String Catalogs and relevant localization features for Linux & Windows
https://github.com/randomhashtags/swift-string-catalogs
localisation localization string-catalog swift swift-package-manager
Last synced: 4 months ago
JSON representation
Provides Xcode String Catalogs and relevant localization features for Linux & Windows
- Host: GitHub
- URL: https://github.com/randomhashtags/swift-string-catalogs
- Owner: RandomHashTags
- License: apache-2.0
- Created: 2024-05-16T08:35:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-28T04:28:31.000Z (11 months ago)
- Last Synced: 2025-03-14T20:17:53.310Z (10 months ago)
- Topics: localisation, localization, string-catalog, swift, swift-package-manager
- Language: Swift
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Xcode string catalogs are very powerful, but their accessibility is not available on other platforms other than Apple. This package fixes that.
## Usage
```swift
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)
```