Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): allow choosing the voice input language #10519

ClosedbaptisteArno(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/10519/headopened View on GitHub

Showing 7 changed files with 84 additions and 4 deletions (loading 4).

x
0 of 7 viewed, 7 left
50 additions and 0 deletionsapps/mobile/src/features/settings/SettingsRouteScreen.tsxModified
View file
@@ -19,6 +19,7 @@
squashAtomCommandFailure,
} from "@t3tools/client-runtime/state/runtime";
import { AndroidScreenHeader } from "../../components/AndroidScreenHeader";
+import { ControlPillMenu } from "../../components/ControlPill";
import { AppText as Text, AppTextInput as TextInput } from "../../components/AppText";
import { supportsAgentAwarenessPush } from "../agent-awareness/capabilities";
import { setLiveActivityUpdatesEnabled } from "../agent-awareness/liveActivityPreferences";
@@ -544,6 +545,9 @@
function GeneralSettingsSection() {
return (
<SettingsSection title="General">
+ {Platform.OS === "ios" && Number.parseInt(Platform.Version, 10) >= 26 ? (
+ <VoiceInputLanguageRow />
+ ) : null}
<SettingsRow icon="folder" label="Project Grouping" target="SettingsProjectGrouping" />
<AutoSettleSettingsRows />
<SettingsRow icon="chart.bar.xaxis" label="Usage" target="SettingsUsage" />
@@ -551,6 +555,52 @@
​
+const VOICE_INPUT_LANGUAGES = [
+ { id: "system", title: "System" },
+ { id: "yue-CN", title: "Cantonese" },
+ { id: "zh-CN", title: "Chinese (Simplified)" },
+ { id: "zh-TW", title: "Chinese (Traditional)" },
+ { id: "en-US", title: "English" },