This PR contains the work done to Reviewed-on: rock-n-code/loud-amsterdam#26 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
24 lines
453 B
Swift
24 lines
453 B
Swift
import Foundation
|
|
|
|
@testable import Localization
|
|
|
|
/// A ``CatalogResolving`` backend with fixed languages, for exercising types apart from a bundled catalog.
|
|
struct StubCatalog: CatalogResolving {
|
|
|
|
// MARK: Properties
|
|
|
|
let sourceLanguage: String
|
|
let languages: Set<String>
|
|
var state: CatalogState = .loaded
|
|
|
|
// MARK: Methods
|
|
|
|
func string(
|
|
for key: String,
|
|
in locale: Locale
|
|
) -> String {
|
|
key
|
|
}
|
|
|
|
}
|