import Foundation public func sheetsMacString(_ key: String) -> String { NSLocalizedString(key, tableName: "Mac", bundle: SheetsResources.bundle, comment: "") } // SwiftPM's generated lookup checks the executable bundle root and then an // absolute build-machine path. Installed macOS apps put resources in Contents/Resources. enum SheetsResources { static let bundle: Bundle = { if let url = Bundle.main.url(forResource: "SheetsNative_SheetsKit", withExtension: "bundle"), let bundle = Bundle(url: url) { return bundle } return .module }() }