mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 18:21:00 +00:00
Fix ISO 639 languages
This commit is contained in:
parent
1870b80f4a
commit
8eb9daac3e
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ public struct Language: Identifiable, Equatable, Hashable {
|
|||
public let localizedName: String?
|
||||
|
||||
public static var allAvailableLanguages: [Language] = Locale.LanguageCode.isoLanguageCodes
|
||||
.filter { $0.identifier.count == 2 }
|
||||
.filter { $0.identifier.count <= 3 }
|
||||
.map { lang in
|
||||
let nativeLocale = Locale(languageComponents: Locale.Language.Components(languageCode: lang))
|
||||
return Language(
|
||||
|
|
Loading…
Reference in a new issue