Latest 0.1.4
Homepage https://github.com/fadizant/FALanguage
License MIT
Platforms ios 9.0
Authors

Version
License
Platform

Example

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

How to use

ObjC


// en = language code

[NSBundle setLanguage:@"en"];

//you need to reload window.rootViewController

AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];

appDelegate.window.rootViewController = [self.storyboard instantiateInitialViewController];

[appDelegate.window makeKeyAndVisible];

Swift4


// en = language code

Bundle.setLanguage("en")

//you need to reload window.rootViewController

let appDelegate = UIApplication.shared.delegate

appDelegate?.window??.rootViewController = self.storyboard?.instantiateInitialViewController()

appDelegate?.window??.makeKeyAndVisible()

Requirements

iOS 9.0+

You have to set your language in "Localizations" in "PROJECT"

FALanguage

Installation

FALanguage is available through CocoaPods. To install

it, simply add the following line to your Podfile:


pod "FALanguage"

Author

fadizant, [email protected]

License

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

Latest podspec

{
    "name": "FALanguage",
    "version": "0.1.4",
    "summary": "add set language to bundle + show pod in cocoa pod library",
    "homepage": "https://github.com/fadizant/FALanguage",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "fadizant": "[email protected]"
    },
    "source": {
        "git": "https://github.com/fadizant/FALanguage.git",
        "tag": "0.1.4"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "FALanguage/Classes/**/*"
}

Pin It on Pinterest

Share This