diff --git a/LoopFollow/Controllers/SpeakBG.swift b/LoopFollow/Controllers/SpeakBG.swift index 6f4c0c6b0..ee003ce49 100644 --- a/LoopFollow/Controllers/SpeakBG.swift +++ b/LoopFollow/Controllers/SpeakBG.swift @@ -73,6 +73,13 @@ extension MainViewController { static func forLanguage(_ language: String) -> AnnouncementTexts { switch language { + case "fr": + return AnnouncementTexts( + stable: "et c'est stable", + increase: "et c'est monté de", + decrease: "et c'est descendu de", + currentBGIs: "La glycémie est" + ) case "it": return AnnouncementTexts( stable: "ed è stabile", @@ -109,6 +116,7 @@ extension MainViewController { enum LanguageVoiceMapping { static let voiceLanguageMap: [String: String] = [ "en": "en-US", + "fr": "fr-FR", "it": "it-IT", "sk": "sk-SK", "sv": "sv-SE", diff --git a/LoopFollow/Settings/GeneralSettingsView.swift b/LoopFollow/Settings/GeneralSettingsView.swift index 033e19953..93b7c8f4f 100644 --- a/LoopFollow/Settings/GeneralSettingsView.swift +++ b/LoopFollow/Settings/GeneralSettingsView.swift @@ -81,6 +81,7 @@ struct GeneralSettingsView: View { if speakBG.value { Picker("Language", selection: $speakLanguage.value) { Text("English").tag("en") + Text("French").tag("fr") Text("Italian").tag("it") Text("Slovak").tag("sk") Text("Swedish").tag("sv")