Skip to content

Commit

Permalink
Merge pull request #8 from ezisazis/mm-support
Browse files Browse the repository at this point in the history
Add support for objective-c++
  • Loading branch information
s4cha authored Feb 19, 2018
2 parents 060e072 + 111f4fc commit e3c8ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Localize.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e3c8ddc

Please sign in to comment.