Update LocalizedTimeAgo for Swift 5.1
LocalizedTimeAgo is a time ago framework written in Swift and localized in 42 languages. It uses translations from the popular Objective-C library DateTools.
Amharic, Arabic, Basque, Bulgarian, Catalan, Chinese (Simplified), Chinese (Traditional), Croatian, Czech, Danish, Dutch, English, Finnish, French, German, Greek, Gujarati, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Korean, Latvian, Malay, Norwegian, Polish, Portuguese (Brazil), Portuguese (Portugal), Romanian, Russian, Slovak, Slovenian, Spanish, Swedish, Thai, Turkish, Ukranian, Vietnamese, Welsh
Swift Package Manager is Apple’s official package manager for Swift frameworks. To install with Swift Package Manager:
Add LocalizedTimeAgo to your Package.swift file:
import PackageDescription let package = Package( name: "MyAppTarget", dependencies: [ .Package(url: "https://github.com/toddkramer/LocalizedTimeAgo", majorVersion: 1, minor: 3) ] )
Run swift build.
swift build
Generate Xcode project:
swift package generate-xcodeproj
Carthage is a decentralized dependency manager for Cocoa projects. To install LocalizedTimeAgo with Carthage:
Make sure Carthage is installed.
Add LocalizedTimeAgo to your Cartfile:
github "toddkramer/LocalizedTimeAgo" ~> 1.3.0
Run carthage update and add the appropriate framework.
carthage update
CocoaPods is a centralized dependency manager for Cocoa projects. To install LocalizedTimeAgo with CocoaPods:
Add LocalizedTimeAgo to your Podfile:
use_frameworks! pod 'LocalizedTimeAgo', '~> 1.3.0'
Run pod install.
pod install
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
LocalizedTimeAgo
LocalizedTimeAgo is a time ago framework written in Swift and localized in 42 languages. It uses translations from the popular Objective-C library DateTools.
Supported Localizations
Amharic, Arabic, Basque, Bulgarian, Catalan, Chinese (Simplified), Chinese (Traditional), Croatian, Czech, Danish, Dutch, English, Finnish, French, German, Greek, Gujarati, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Korean, Latvian, Malay, Norwegian, Polish, Portuguese (Brazil), Portuguese (Portugal), Romanian, Russian, Slovak, Slovenian, Spanish, Swedish, Thai, Turkish, Ukranian, Vietnamese, Welsh
Installation
Swift Package Manager
Swift Package Manager is Apple’s official package manager for Swift frameworks. To install with Swift Package Manager:
Add LocalizedTimeAgo to your Package.swift file:
Run
swift build
.Generate Xcode project:
Carthage
Carthage is a decentralized dependency manager for Cocoa projects. To install LocalizedTimeAgo with Carthage:
Make sure Carthage is installed.
Add LocalizedTimeAgo to your Cartfile:
Run
carthage update
and add the appropriate framework.CocoaPods
CocoaPods is a centralized dependency manager for Cocoa projects. To install LocalizedTimeAgo with CocoaPods:
Add LocalizedTimeAgo to your Podfile:
Run
pod install
.