Swift references and extensions for app localization & internationalization.
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 LocaleSupportThis 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.LanguageCodeLocale.ScriptLocale.RegionLocale.Components
Contributions to LocaleSupport are welcomed and encouraged!