stt-to-storage: UX - Move speechToText from state to storage.

This commit is contained in:
Colin Campbell
2024-08-25 13:37:39 +02:00
parent 788d6c9c1f
commit 13cbc5b084
4 changed files with 9 additions and 8 deletions

View File

@@ -53,7 +53,10 @@ export const SettingsBody = () => {
const [hideCurrentChatModelSettings, setHideCurrentChatModelSettings] =
useStorage("hideCurrentChatModelSettings", false)
const { speechToTextLanguage, setSpeechToTextLanguage } = useMessage()
const [ speechToTextLanguage, setSpeechToTextLanguage ] = useStorage(
"speechToTextLanguage",
"en-US"
)
const { mode, toggleDarkMode } = useDarkMode()
const { changeLocale, locale, supportLanguage } = useI18n()