Latest 0.91.10
Homepage https://github.com/andrealufino/Translatio
License MIT
Platforms ios 9.0
Authors

CI Status
Version
License
Platform

Logo

Example

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

Requirements

iOS 9 or higher.

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.

Logo

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

Author

Andrea Mario Lufino, [email protected]

License

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

Latest podspec

{
    "name": "Translatio",
    "version": "0.91.10",
    "summary": "Easily localize your iOS apps with this super lightweight framework",
    "swift_version": "4.2",
    "description": "TODO: Add long description of the pod here.nTranslatio is a library that helps to localize strings in an application. It adds a property and a function to the strings object and provides extensions for the UI elements such as UIButton, UITextField, UITextView, UILabel, UINavigationItem, UIBarButtonItem. The very nice thing is that you can provide the localizable key for the UI element directly from the Interface Builder file (storyboard or xib).",
    "homepage": "https://github.com/andrealufino/Translatio",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "andrealufino": "[email protected]"
    },
    "source": {
        "git": "https://github.com/andrealufino/Translatio.git",
        "tag": "0.91.10"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "Translatio/Classes/**/*"
}

Pin It on Pinterest

Share This