import Foundation

enum LocalizationWrapper {
    static func localizedString(_ key: String, _ table: String, _ value: String) -> String {
        return BundleToken.bundle.localizedString(forKey: key, value: value, table: table)
    }
}

// swiftlint:disable convenience_type
private final class BundleToken {
    static let bundle: Bundle = {
        #if SWIFT_PACKAGE
            return Bundle.module
        #else
            return Bundle(for: BundleToken.self)
        #endif
    }()
}
