         var age = ""
         
         if years != 0 {
-            var formattedString = langBundle.localizedStringForKey("yy", value: "%d years", table: "YLMomentRelativeTimeLocalizable")
+            var formattedString = langBundle?.localizedString(forKey: "yy", value: "%d years", table: "YLMomentRelativeTimeLocalizable")
             if years == 1 {
-                formattedString = langBundle.localizedStringForKey("y1", value: "%d year", table: "YLMomentRelativeTimeLocalizable")
+                formattedString = langBundle?.localizedString(forKey: "y1", value: "%d year", table: "YLMomentRelativeTimeLocalizable")
             }
             if maxComponents > 0 {
-                age = NSString(format: formattedString, years) as String
+                age = NSString(format: formattedString as! NSString, years) as String
                 age += (delimiter != nil) ? (delimiter! as String + " ") : " "
-                maxComponents--
+                maxComponents -= 1
             }
         }
         
         if months != 0 {
-            var formattedString = langBundle.localizedStringForKey("MM", value: "%d months", table: "YLMomentRelativeTimeLocalizable")
+            var formattedString = langBundle?.localizedString(forKey: "MM", value: "%d months", table: "YLMomentRelativeTimeLocalizable")
             if months == 1 {
-                formattedString = langBundle.localizedStringForKey("M1", value: "%d month", table: "YLMomentRelativeTimeLocalizable")
+                formattedString = langBundle?.localizedString(forKey: "M1", value: "%d month", table: "YLMomentRelativeTimeLocalizable")
             }
             if maxComponents > 0 {
-                age += NSString(format: formattedString, months) as String
+                age += NSString(format: formattedString as! NSString, months) as String
                 age += (delimiter != nil) ? (delimiter! as String + " ") : " "
-                maxComponents--
+                maxComponents -= 1
             }
         }
         
         if age.characters.count == 0 || days != 0 {
-            var formattedString = langBundle.localizedStringForKey("dd", value: "%d days", table: "YLMomentRelativeTimeLocalizable")
+            var formattedString = langBundle?.localizedString(forKey: "dd", value: "%d days", table: "YLMomentRelativeTimeLocalizable")
             if days <= 1 {
-                formattedString = langBundle.localizedStringForKey("d1", value: "%d day", table: "YLMomentRelativeTimeLocalizable")
+                formattedString = langBundle?.localizedString(forKey: "d1", value: "%d day", table: "YLMomentRelativeTimeLocalizable")
             }
             if maxComponents > 0 {
-                age += NSString(format: formattedString, days) as String
+                age += NSString(format: formattedString as! NSString, days) as String
             }
         }
         

        if let delimiter = delimiter {
            trimmingCharacters += delimiter
        }
        return age.stringByTrimmingCharactersInSet(NSCharacterSet(charactersInString: trimmingCharacters))
    }
    
}

    }
    
    public func ageFromNow(withDelimiter delimiter: String? = nil) -> String {
        return ageFromDate(Date(), withDelimiter: delimiter)
    }

    /// Return the age, as a pretty string, between date and this moment
