                 case .Android:
                     let keyForAndroid = String(key.characters.map {
                         $0 == " " ? "_" : $0
-                        }).lowercaseString
-                    
+                    }).lowercased()
+
                     var valueForAndroid = line[i]
-                        .stringByReplacingOccurrencesOfString("&", withString: "&amp;")
-                        .stringByReplacingOccurrencesOfString("'", withString: "\\'")
-                    
+                        .replacingOccurrences(of: "&", with: "&amp;")
+                        .replacingOccurrences(of: "'", with: "\\'")
+
                     var i = 1
                     let placeholderForIOS = "%@"
-                    while valueForAndroid.containsString(placeholderForIOS) {
+                    while valueForAndroid.contains(placeholderForIOS) {
                         valueForAndroid = valueForAndroid
-                            .stringByReplacingOccurrencesOfString(placeholderForIOS, withString: "%\(i)$s", range: valueForAndroid.rangeOfString(placeholderForIOS))
+                            .replacingOccurrences(of: placeholderForIOS, with: "%\(i)$s", range: valueForAndroid.range(of: placeholderForIOS))
                         i += 1
                     }
-                    
+
                     localization = "    <string name=\"\(keyForAndroid)\">\(valueForAndroid)</string>"
                 case .iOS:
-                    let escaped = line[i].stringByReplacingOccurrencesOfString("\"", withString: "\\\"")
+                    let escaped = line[i].replacingOccurrences(of: "\"", with: "\\\"")
                     localization = "\"\(key)\" = \"\(escaped)\";"
                 }
                 langs[langIndex].append(localization)

        case .iOS:
            fileName = "Localizable.strings"
        }
        let currentFilePath = currentDirPath.URLByAppendingPathComponent(fileName)
        result.dataUsingEncoding(NSUTF8StringEncoding)?.writeToURL(currentFilePath, atomically: true)
        
        print(currentFilePath)
    }
}

        case .iOS:
            dirName = "\(firstRow[i]).lproj"
        }
        let currentDirPath = dirPath.appendingPathComponent(dirName, isDirectory: true)
        try! FileManager.default.createDirectory(at: currentDirPath, withIntermediateDirectories: true, attributes: nil)
        let result = langs[i].reduce("") { $0 + $1 + "\n" }

        let fileName: String
        switch platform {
        case .Android:
