From 111f4fcdc32e89936c335dc6d0d0d4e96e19fbd6 Mon Sep 17 00:00:00 2001 From: jonas-levente Date: Mon, 19 Feb 2018 21:50:57 +0100 Subject: [PATCH] Add support for objective-c++ --- Localize.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localize.swift b/Localize.swift index 400c4f3..5bcad85 100755 --- a/Localize.swift +++ b/Localize.swift @@ -217,7 +217,7 @@ let enumerator = fileManager.enumerator(atPath:sourcesPath) var localizedStrings = [String]() while let swiftFileLocation = enumerator?.nextObject() as? String { // checks the extension // TODO OBJC? - if swiftFileLocation.hasSuffix(".swift") || swiftFileLocation.hasSuffix(".m") { + if swiftFileLocation.hasSuffix(".swift") || swiftFileLocation.hasSuffix(".m") || swiftFileLocation.hasSuffix(".mm") { let location = "\(sourcesPath)/\(swiftFileLocation)" if let string = try? String(contentsOfFile: location, encoding: .utf8) { for p in patterns {