Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(mobile): pick the language voice input transcribes in #22380

ClosedGSTJ(GitHub profile, opens in a new tab)wants to merge 7 commits intomain fromrefs/pull/22380/headopened View on GitHub

Showing 16 changed files with 73 additions and 0 deletions (loading 12).

x
0 of 16 viewed, 16 left
1 addition and 0 deletionsapps/mobile/src/features/settings/components/settings-page-targets.tsModified
View file
@@ -16,6 +16,7 @@
"SettingsProviderAccounts",
"SettingsKeyboard",
"SettingsMicrophone",
+ "SettingsDictationLanguage",
"SettingsFollowUp",
"SettingsScheduledTasks",
"SettingsProjectGrouping",
56 additions and 0 deletionsapps/mobile/src/features/settings/SettingsDictationLanguageRouteScreen.tsxAdded
View file
@@ -0,0 +1,56 @@
+import { ScreenScrollView as ScrollView } from "../../components/ui/ScreenScrollView";
+import { useAtomSet, useAtomValue } from "@effect/atom-react";
+import { AsyncResult } from "effect/reactivity";
+import { View } from "react-native";
+import { useSafeAreaInsets } from "react-native-safe-area-context";
+​
+import {
+ DEVICE_DICTATION_LANGUAGE_LABEL,
+ useDictationLanguages,
+} from "../../lib/dictationLanguages";
+import { mobilePreferencesAtom, updateMobilePreferencesAtom } from "../../state/preferences";
+import { SettingsChoiceRow } from "./components/SettingsChoiceRow";
+import { SettingsSection } from "./components/SettingsSection";
+​
+export function SettingsDictationLanguageRouteScreen() {
+ const insets = useSafeAreaInsets();
+ const preferencesResult = useAtomValue(mobilePreferencesAtom);
+ const savePreferences = useAtomSet(updateMobilePreferencesAtom);