title: How to set default language for ios app
body: <p>My app contains 4 different languages. Developing language was English now I want to set some other language(Russian) as default language(App language have to be Russian when app installs the first time) how can I achieve this?</p>
  
  <p>In my app delegate:</p>
  
  <pre><code>func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&gt; Bool {  
       NSBundle.setLanguage(defaultLanguage)  
  }   
  
  extension NSBundle {
      class func setLanguage(language: String) {
          defer {
              object_setClass(NSBundle.mainBundle(), Language.self)
          }
  
          objc_setAssociatedObject(NSBundle.mainBundle(), &amp;bundleKey, NSBundle.mainBundle().pathForResource(language, ofType: "lproj"), .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
  
      }
  }
  </code></pre>
  
  <p>I have added this code but the language is not changing.</p>