diff --git a/Sources/EeveeSpotify/Premium/Helpers/BundleHelper.swift b/Sources/EeveeSpotify/Premium/Helpers/BundleHelper.swift index 5492e66f..16326f83 100755 --- a/Sources/EeveeSpotify/Premium/Helpers/BundleHelper.swift +++ b/Sources/EeveeSpotify/Premium/Helpers/BundleHelper.swift @@ -6,6 +6,8 @@ class BundleHelper { private let bundleName = "EeveeSpotify" private let bundle: Bundle + private let enBundle: Bundle + static let shared = BundleHelper() private init() { @@ -16,6 +18,8 @@ class BundleHelper { ) ?? jbRootPath("/Library/Application Support/\(bundleName).bundle") )! + + enBundle = Bundle(path: bundle.path(forResource: "en", ofType: "lproj")!)! } func uiImage(_ name: String) -> UIImage { @@ -28,7 +32,13 @@ class BundleHelper { } func localizedString(_ key: String) -> String { - return bundle.localizedString(forKey: key, value: nil, table: nil) + let value = bundle.localizedString(forKey: key, value: "No translation", table: nil) + + if value != "No translation" { + return value + } + + return enBundle.localizedString(forKey: key, value: nil, table: nil) } func resolveConfiguration() throws -> ResolveConfiguration {