知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.
Swift androidlinuxlive-captionsmacosmeeting-notesmenubar-appsimultaneous-interpretationspeech-recognitionsubtitlesswiftswiftuitranslationwindows
import Foundation
func L(_ value: String.LocalizationValue) -> String { String(localized: value) }
var uiLocale: Locale { Locale(identifier: Bundle.main.preferredLocalizations.first ?? "zh-Hans") }
var uiIsChinese: Bool { (Bundle.main.preferredLocalizations.first ?? "zh").hasPrefix("zh") }
func dateText(_ date: Date, _ template: String) -> String {
let f = DateFormatter()
f.locale = uiLocale
f.setLocalizedDateFormatFromTemplate(template)
return f.string(from: date)
}
let appDisplayName = Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as? String ?? L("知了")