Expanded Apple languages support

This commit is contained in:
Beingpax 2025-06-24 18:17:31 +05:45
parent eedd8667da
commit 51dc742e1e
2 changed files with 9 additions and 2 deletions

View File

@ -33,7 +33,7 @@ import Foundation
} else {
// For Apple Native models, return only supported languages in simple format
if provider == .nativeApple {
let appleSupportedCodes = ["en", "es", "fr", "de"]
let appleSupportedCodes = ["ar", "de", "en", "es", "fr", "it", "ja", "ko", "pt", "yue", "zh"]
return allLanguages.filter { appleSupportedCodes.contains($0.key) }
}
return allLanguages

View File

@ -17,7 +17,14 @@ class NativeAppleTranscriptionService: TranscriptionService {
"en": "en-US",
"es": "es-ES",
"fr": "fr-FR",
"de": "de-DE"
"de": "de-DE",
"ar": "ar-SA",
"it": "it-IT",
"ja": "ja-JP",
"ko": "ko-KR",
"pt": "pt-BR",
"yue": "yue-CN",
"zh": "zh-CN"
]
return mapping[simpleCode] ?? "en-US"
}