Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.42 KB

README.md

File metadata and controls

51 lines (36 loc) · 1.42 KB

LocaleSupport

Swift references and extensions for app localization & internationalization.

Twitter: @richardpiazza

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.4.0"))
    ],
    ...
)

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

import LocaleSupport

Targets

LocaleSupport

This module is focused on implementing localized strings within apps themselves. Highlighted by the LocalizedStringConvertible protocol.

Apple Platforms Note:

As of macOS 13, iOS 16, tvOS 16 & watchOS 9, the Locale type includes support for many of the extensions in this package:

  • Locale.LanguageCode
  • Locale.Script
  • Locale.Region
  • Locale.Components

Contribution

Contributions to LocaleSupport are welcomed and encouraged!