@devries-cameron20 / t3code-1 / commits / 16695c812f
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

feat(mobile): move Language into General settings (#37553)

Julius Marminge committed Nov 15, 2026 at 23:17 UTC 16695c812fffe75e85f8cc3084d2c561aa3ca93f
4 files changed +34 -10
apps/mobile/src/features/settings/SettingsLanguageRouteScreen.tsx
+27
@@ -8,9 +8,36 @@ import { SYSTEM_LANGUAGE, nativeLanguageName } from "@t3tools/client-runtime/loc
8 import { SUPPORTED_LOCALES } from "../../i18n/locales";
9 import { mobilePreferencesAtom, updateMobilePreferencesAtom } from "../../state/preferences";
10 import { ListChoiceRow as SettingsChoiceRow } from "../../components/ui/ListChoiceRow";
11 +import { SettingsRow } from "./components/SettingsRow";
12 import { SettingsSection } from "./components/SettingsSection";
13 import { SettingsScreen } from "./components/SettingsScreen";
14
15 +/** General's row that opens the language picker, showing the current choice. */
16 +export function LanguageSettingsSection() {
17 + return (
18 + <I18nProvider>
19 + <LanguageRow />
20 + </I18nProvider>
21 + );
22 +}
23 +
24 +function LanguageRow() {
25 + const gt = useGT();
26 + const language = useLanguagePreference();
27 + return (
28 + <SettingsSection>
29 + <SettingsRow
30 + icon="globe"
31 + label={gt("Language")}
32 + value={
33 + SUPPORTED_LOCALES.includes(language) ? nativeLanguageName(language) : gt("System default")
34 + }
35 + target="SettingsLanguage"
36 + />
37 + </SettingsSection>
38 + );
39 +}
40 +
41 export function SettingsLanguageRouteScreen() {
42 return (
43 <I18nProvider>
apps/mobile/src/features/settings/SettingsProjectGroupingRouteScreen.tsx
+2
@@ -12,6 +12,7 @@ import {
12 import { mobilePreferencesAtom, updateMobilePreferencesAtom } from "../../state/preferences";
13 import { ListChoiceRow as SettingsChoiceRow } from "../../components/ui/ListChoiceRow";
14 import { SettingsSection } from "./components/SettingsSection";
15 +import { LanguageSettingsSection } from "./SettingsLanguageRouteScreen";
16 import { NewThreadSettingsSection, WorkingSectionSettings } from "./ThreadSettingsSections";
17
18 const GROUPING_OPTIONS: ReadonlyArray<{
@@ -54,6 +55,7 @@ export function SettingsProjectGroupingRouteScreen() {
55 contentContainerClassName="gap-3 px-5 pt-4"
56 contentContainerStyle={{ paddingBottom: Math.max(insets.bottom, 18) + 18 }}
57 >
58 + <LanguageSettingsSection />
59 <SettingsSection title="Project grouping">
60 {GROUPING_OPTIONS.map((option, index) => (
61 <SettingsChoiceRow
apps/mobile/src/features/settings/SettingsRouteScreen.tsx
+1 -9
@@ -33,9 +33,7 @@ import { useSettingsEnvironmentMenu } from "./components/SettingsEnvironmentFilt
33 import { useSettingsEnvironmentFilter } from "./settings-environment-filter";
34 import { filterSettingsSections } from "./settings-search";
35 import { usePaneRole } from "../../components/ui/Pane";
36 -import { I18nProvider, useGT, useLanguagePreference } from "../../i18n/I18nProvider";
37 -import { nativeLanguageName } from "@t3tools/client-runtime/locales";
38 -import { SUPPORTED_LOCALES } from "../../i18n/locales";
36 +import { I18nProvider, useGT } from "../../i18n/I18nProvider";
37
38 export function SettingsRouteScreen() {
39 const list = useSettingsListPlacement();
@@ -241,7 +239,6 @@ function SettingsList(props: { readonly connections: readonly SettingsListRow[]
239
240 function useSettingsIndexSections(): SettingsListSection[] {
241 const gt = useGT();
244 - const language = useLanguagePreference();
242 const { selectedTargets, projectGroups, selectedProjectKey } = useSettingsEnvironmentFilter();
243 const noServerTargets = selectedTargets.length === 0;
244 const selectedProject = projectGroups.find((group) => group.key === selectedProjectKey);
@@ -273,11 +270,6 @@ function useSettingsIndexSections(): SettingsListSection[] {
270 rows: [
271 page("SettingsOrganization", "gearshape", gt("General")),
272 page("SettingsAppearance", "paintbrush", gt("Appearance")),
276 - page("SettingsLanguage", "globe", gt("Language"), {
277 - value: SUPPORTED_LOCALES.includes(language)
278 - ? nativeLanguageName(language)
279 - : gt("System default"),
280 - }),
273 page("SettingsFollowUp", "bubble.left.and.bubble.right", gt("Chat")),
274 ...(navigationCustomizationAvailable()
275 ? [page("SettingsNavigation", "line.3.horizontal", gt("Navigation tabs"))]
apps/mobile/src/features/settings/settings-search.ts
+4 -1
@@ -33,7 +33,6 @@ const SETTINGS_SEARCH_TERMS = {
33 "zen",
34 "final answers only",
35 ],
36 - SettingsLanguage: ["language", "locale", "translation", "english"],
36 SettingsNavigation: ["tabs", "tab order", "reorder", "hide tabs"],
37 SettingsKeyboard: ["return key", "send message", "new line", "hardware keyboard"],
38 SettingsVoice: [
@@ -53,6 +52,10 @@ const SETTINGS_SEARCH_TERMS = {
52 SettingsScheduledTasks: ["automations", "schedule", "cron", "recurring", "webhook"],
53 SettingsProjectOverview: ["project", "overview", "checkouts", "delete project"],
54 SettingsOrganization: [
55 + "language",
56 + "locale",
57 + "translation",
58 + "english",
59 "project grouping",
60 "group projects",
61 "organization",