Skip to content

Commit 8b0b355

Browse files
committed
Compile GachaMetaDB using AmbrYatta APIs.
1 parent 10164ac commit 8b0b355

File tree

12 files changed

+514
-496
lines changed

12 files changed

+514
-496
lines changed

Sources/GachaMetaDB/GachaMetaDB.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ extension GachaMetaDB {
2222
!ids.subtracting(Set<String>(keys)).isEmpty
2323
}
2424

25-
public func checkIfLangIDSupported(langID: String, game: SupportedGame) -> Bool {
26-
Lang.allCases(for: game).first(where: { $0.langID == langID.lowercased() }) != nil
25+
public func checkIfLangIDSupported(langTag: String, game: SupportedGame) -> Bool {
26+
Lang.allCases(for: game).first(where: { $0.langTag == langTag.lowercased() }) != nil
2727
}
2828

2929
/// Just query name translations without doing anything else.
@@ -67,7 +67,7 @@ extension GachaMetaDB {
6767

6868
public static func fetchAndCompileLatestDB(for game: SupportedGame) async throws
6969
-> GachaMetaDB {
70-
try await GachaMetaGenerator.fetchAndCompile(for: game)
70+
try await GachaMetaGenerator.fetchAndCompileFromAmbrYatta(for: game)
7171
}
7272
}
7373

0 commit comments

Comments
 (0)