TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2015 |
Maintained by SelfStudio.
An auto i18n setter.
Only Replace the text or attribute text in Class UILabel.(Judge by class name string == "UILabel")
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()])
})
}
Xcode 7 (Test pass)
Xcode 6 (Test failure,still working on it)
SSI18N is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SSI18N"
CodeEagle, [email protected]
SSI18N is available under the MIT license. See the LICENSE file for more info.