Merge upstream v0.4.0 into Gitea fork
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
"use client";
|
||||
|
||||
import { LanguageSelect, useI18n } from "@/components/i18n";
|
||||
import { SettingsRow } from "@/components/settings/controls";
|
||||
import { useDictationActive } from "@/components/dictation-state";
|
||||
|
||||
/** Settings and the composer share the fork's general.sttLanguage preference. */
|
||||
export function DictationLanguageSetting() {
|
||||
const { t } = useI18n();
|
||||
const active = useDictationActive();
|
||||
return <SettingsRow label={t("Speech recognition language")} testid="row-dictation-language" dimmed={active}>
|
||||
<LanguageSelect field="sttLanguage" disabled={active} />
|
||||
</SettingsRow>;
|
||||
}
|
||||
Reference in New Issue
Block a user