Initial commit.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user