mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-15 07:06:21 -04:00
Include macOS available in macro
This commit is contained in:
parent
1a3d382a75
commit
fe41532af7
@ -57,7 +57,7 @@ public class LibraryViewModel: ObservableObject {
|
||||
|
||||
// populate library language code if there isn't one set already
|
||||
let currentLanguageCode: String?
|
||||
if #available(iOS 16, *) {
|
||||
if #available(iOS 16, macOS 13, *) {
|
||||
currentLanguageCode = Locale.current.language.languageCode?.identifier(.alpha3)
|
||||
} else {
|
||||
// Locale.current.languageCode is returning a 2 char lang code, eg: "en"
|
||||
|
Loading…
x
Reference in New Issue
Block a user