Popularity
0.9
Stable
Activity
0.0
Stable
19
7
3

Programming language: Swift
License: MIT License
Tags: Localization    
Latest version: v1.1.0

Translatio alternatives and similar libraries

Based on the "Localization" category.
Alternatively, view Translatio alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Translatio or a related project?

Add another 'Localization' Library

README

Translatio

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 9 or higher. Swift 5.

Installation

Translatio is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Translatio"

Usage

Code

Translatio provides 2 additions to the String objects :

  • localized property
  • localized(withBundle:tableName) method

They can both be used easily in code, this is an example :

let hello = "UI.Home.Hello".localized
let anotherHello = "UI.Home.Hello".localized(withBundle: Bundle.main, tableName: "Labels")

Interface Builder (storyboard and xib)

Translatio adds extensions to all the most common UI elements such as UIButton, UITextField, UITextView, UILabel, UIBarButtonItem, UINavigationItem. The extensions provide an @IBInspectable property that can be modified directly in the storyboard. This gives a very big advantage in localizing interface files.

As you can see the UILabel now has a Localizable Text property that can be modified directly in the IB.

Author

Andrea Mario Lufino, andrealufino.me.

License

Translatio is available under the MIT license. See the LICENSE file for more info.


*Note that all licence references and agreements mentioned in the Translatio README section above are relevant to that project's source code only.