Swiftpack.co -  richardpiazza/LocaleSupport as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
richardpiazza/LocaleSupport
Swift toolkit for managing app localization & internationalization.
.package(url: "https://github.com/richardpiazza/LocaleSupport.git", from: "0.3.1")

LocaleSupport

Swift toolkit for managing app localization & internationalization.

Twitter: @richardpiazza

Packages

This toolkit is comprised of several components:

  • LocaleSupport: This module is focused on implementing localized strings within apps themselves. Highlighted by the ExpressibleByLocalizedString protocol.
  • TranslationCatalog: Entity definitions for a lightweight catalog that can persist and retrieve translations.
  • TranslationCatalogSQLite: A cross-platform SQLite implementation of the Translation Catalog.
  • localizer: A swift command line that can interact with a catalog along with importing, exporting, and documenting localizations.

LocaleSupport Module

ExpressibleByLocalizedString

LanguageCode, ScriptCode, RegionCode

TranslationCatalog Module

Catalog

TranslationCatalogSQLite Module

Statement

localizer Executable

Usage

LocaleSupport 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/LocaleSupport.git", .upToNextMinor(from: "0.3.0"))
    ],
    ...
)

Then import the LocaleSupport packages wherever you'd like to use it:

import LocaleSupport

Contribution

Contributions to LocaleSupport are welcomed and encouraged!

GitHub

link
Stars: 0
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

LocaleSupport 0.3.1
2 weeks ago

Generic Query and Update types for interacting with none-typed Catalogs.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API