Latest 0.1.2
Homepage https://github.com/wangjufan/International-iOS
License MIT
Platforms ios 9.0, requires ARC
Authors

International-iOS is a delightful library for iOS .

It is built on top of method swizzling on UILabel.
It is very easy to integrate it into your project.
And supports for bundle international by key with format "bundlename:key",
see example [self.label setText:@"International_iOS:Album access required"] in ViewController .

Podfile

To integrate AFNetworking into your Xcode project using CocoaPods, specify it in your Podfile:

source ‘https://github.com/CocoaPods/Specs.git
platform :ios, ‘9.0’

target ‘TargetName’ do
pod ‘International-iOS’
end
Then, run the following command:

$ pod install

Usage

YDLocalizationCenter

TO change language from chinese to english :
[[YDLocalizationCenter shareEngine] setLanguage:@"en"];

YDLocalBlock

If your need some work to do besides updating text , inherite YDLocalBlock and override method – (void)languageChanged:(NSString *)lan; .
For example , you can request data from remote server .

YDLanguageController

We provide you with some example code in it.

Latest podspec

{
    "name": "International-iOS",
    "version": "0.1.2",
    "summary": "iOSu56fdu9645u5316",
    "description": "iOSu56fdu9645u5316,u652fu6301u7684u63a7u4ef6u6709uff1aUILabel",
    "homepage": "https://github.com/wangjufan/International-iOS",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "wangjufan": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/wangjufan/International-iOS.git",
        "tag": "0.1.2"
    },
    "source_files": "International/Classes/*.{h,m}",
    "public_header_files": "International/Classes/{YDLocalizationCenter,YDLocalBlock}.{h}",
    "requires_arc": true,
    "resources": "International/Resources/*.{lproj}"
}

Pin It on Pinterest

Share This