SSI18N 0.1.2

SSI18N 0.1.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jun 2015

Maintained by SelfStudio.



SSI18N 0.1.2

An auto i18n setter.

Only Replace the text or attribute text in Class UILabel.(Judge by class name string == "UILabel")

Usage

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

    //add to application:didFinishLaunchingWithOptions:
    SSI18N.i18n()

    //useage
    self.lb1.text = "testKey1"
    //or
    SSI18N.addI18nFileWithDict(["ja_US":testJaUrl,"en_US":testUSUrl]) { () -> Void in
            dispatch_async(dispatch_get_main_queue(), { () -> Void in
                self.lb1.text = testKey1
                self.lb2.attributedText = NSAttributedString(string: testKey2, attributes: [NSForegroundColorAttributeName:UIColor.whiteColor()])
            })
        }

Requirements

Xcode 7 (Test pass)

Xcode 6 (Test failure,still working on it)

Installation

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

pod "SSI18N"

Author

CodeEagle, [email protected]

License

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