Latest 0.1.2
Homepage https://github.com/CodeEagle/SSI18N
License MIT
Platforms ios 6.0, requires ARC
Dependencies Aspects
Authors

Version
License
Platform

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.

Latest podspec

{
    "name": "SSI18N",
    "version": "0.1.2",
    "summary": "Set you free from typing NSLocalizedString(key, comment) in Every UILabel",
    "description": "                       #SSI18N nn                       using Aspects to replace text value with localized one.nn                       Even you can download you own i18n file from Internet.n",
    "homepage": "https://github.com/CodeEagle/SSI18N",
    "license": "MIT",
    "authors": {
        "CodeEagle": "[email protected]"
    },
    "source": {
        "git": "https://github.com/CodeEagle/SSI18N.git",
        "tag": "0.1.2"
    },
    "social_media_url": "https://twitter.com/_SelfStudio",
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "Source/*",
    "dependencies": {
        "Aspects": []
    }
}

Pin It on Pinterest

Share This