To run the example project, clone the repo, and run pod install
from the Example directory first.
// 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];
// 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()
iOS 9.0+
You have to set your language in "Localizations" in "PROJECT"
FALanguage is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod "FALanguage"
fadizant, [email protected]
FALanguage is available under the MIT license. See the LICENSE file for more info.