Swift toolkit for managing app localization & internationalization.
TranslationCatalog is distributed using the Swift Package Manager. To install it into a project, add it as
a dependency within your Package.swift
manifest:
let package = Package(
...
dependencies: [
.package(url: "https://github.com/richardpiazza/TranslationCatalog.git", .upToNextMinor(from: "0.1.0"))
],
...
)
Then import the TranslationCatalog packages wherever you'd like to use it:
import TranslationCatalog
This toolkit is comprised of several components:
Entity definitions for a lightweight catalog that can persist and retrieve translations.
A cross-platform implementation of the Translation Catalog that uses directories and JSON documents.
A cross-platform implementation of the Translation Catalog that is backed by a SQLite store.
A swift command line that can interact with a catalog along with importing, exporting, and documenting localizations.
Contributions to LocaleSupport are welcomed and encouraged!