2026-10-25 14:33:49 +01:00
|
|
|
"use client";
|
|
|
|
|
|
2026-10-31 13:45:06 +03:00
|
|
|
import { LanguageSelect, useI18n } from "@/components/i18n";
|
|
|
|
|
import { SettingsRow } from "@/components/settings/controls";
|
2026-10-25 14:33:49 +01:00
|
|
|
import { useDictationActive } from "@/components/dictation-state";
|
|
|
|
|
|
2026-10-31 13:45:06 +03:00
|
|
|
/** Settings and the composer share the fork's general.sttLanguage preference. */
|
2026-10-25 14:33:49 +01:00
|
|
|
export function DictationLanguageSetting() {
|
2026-10-31 13:45:06 +03:00
|
|
|
const { t } = useI18n();
|
2026-10-25 14:33:49 +01:00
|
|
|
const active = useDictationActive();
|
2026-10-31 13:45:06 +03:00
|
|
|
return <SettingsRow label={t("Speech recognition language")} testid="row-dictation-language" dimmed={active}>
|
|
|
|
|
<LanguageSelect field="sttLanguage" disabled={active} />
|
2026-10-27 22:32:55 +02:00
|
|
|
</SettingsRow>;
|
2026-10-25 14:33:49 +01:00
|
|
|
}
|