//
//  Extensions.swift
//  LifetimeTracker
//
//  Created by Hans Seiffert on 23.10.17.
//  Copyright © 2017 LifetimeTracker. All rights reserved.
//

import Foundation

internal extension String {

    var lt_localized: String {
        let bundle = Bundle(for: LifetimeTracker.self)
        return NSLocalizedString(self, bundle: bundle, comment: self)
    }
}

//
//  Extensions.swift
//  LifetimeTracker
//
//  Created by Hans Seiffert on 23.10.17.
//  Copyright © 2017 LifetimeTracker. All rights reserved.
//

import Foundation

internal extension String {

    var lt_localized: String {
        guard let path = Bundle(for: LifetimeTracker.self).path(forResource: "LifetimeTracker", ofType: "bundle"), let bundle = Bundle(path: path) else {
            return self
        }
        return NSLocalizedString(self, bundle: bundle, comment: self)
    }
}

--- 
+++ 
@@ -11,9 +11,7 @@
 internal extension String {
 
     var lt_localized: String {
-        guard let path = Bundle(for: LifetimeTracker.self).path(forResource: "LifetimeTracker", ofType: "bundle"), let bundle = Bundle(path: path) else {
-            return self
-        }
+        let bundle = Bundle(for: LifetimeTracker.self)
         return NSLocalizedString(self, bundle: bundle, comment: self)
     }
 }
Load proper bundle for strings
