This commit is contained in:
Balazs Perlaki-Horvath 2024-06-08 14:52:59 +02:00 committed by Kelson
parent bfd4fe0ba3
commit f41d6a092f

View File

@ -72,9 +72,7 @@ struct Language: Identifiable, Comparable {
let count: Int
init?(code: String, count: Int) {
// let langCode = Locale.canonicalIdentifier(from: code)
guard let name = Locale.current.localizedString(forIdentifier: code) else { return nil }
debugPrint("Language.code: \(code) => name: \(name)")
self.code = code
self.name = name
self.count = count