mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-24 04:03:03 -04:00
Clean up
This commit is contained in:
parent
bfd4fe0ba3
commit
f41d6a092f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user