// SPDX-License-Identifier: LicenseRef-Hive-Proprietary OR GPL-3.0-only

import Foundation

enum L10n {
    static func text(_ key: String, fallback: String, _ arguments: CVarArg...) -> String {
        let format = NSLocalizedString(
            key,
            tableName: nil,
            bundle: .main,
            value: fallback,
            comment: ""
        )
        return String(format: format, locale: Locale.current, arguments: arguments)
    }
}
