Skip to content

feat(native): implement AP-I18N localization and close Settings parity gaps - #426

Merged
rynfar merged 4 commits into
nativefrom
nw/f3-i18n-settings
Nov 19, 2026
Merged

rynfar merged 4 commits into
nativefrom
nw/f3-i18n-settings

Conversation

@rynfar

@rynfar rynfar commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Implements AP-I18N (#378), closes ST-PROVIDERS (#391 providers slice) and ST-SHELL (#139, #92), and advances ST-GENERAL (#188), ST-CHAT (#251), ST-DIFFS (#99), and ST-PROJECTS (#185) strictly within Wave F3's Settings/i18n scope.

Summary of Changes

  1. AP-I18N (#378) -> done

    • Ported packages/client-runtime/src/locales.ts + all 9 embedded 72-key catalogs (en, de, es, fr, ja, ko, pt-BR, ru, zh) into crates/core/src/i18n/ with a parity unit test asserting exact equality against apps/web/src/i18n/translations/*.json.
    • Added language client setting (default = "en") and crates/app/src/i18n.rs reading macOS NSLocale.preferredLanguages (with POSIX env fallback).
    • Wired live reactive translations across Settings nav, breadcrumbs (Settings, section, Open source licenses), about.rs (Open source licenses), search_with_locale, General panel, and Language dropdown.
  2. ST-PROVIDERS (#391 providers slice) -> done

    • Wired ChatGptAccountPicker per-profile "Remove connection" (auth.removeMethod) gated on canRemove: true, surfacing real RPC error messages in chatgpt_setup.rs and advancing picker selection after removal.
    • Wired env-keyed textGenerators (server.listTextGeneratorModels via scoped_rpc) across threads.rs, source_control.rs (source-control-writer-model), and voice.rs.
    • Wired settings/providers.rs and settings/providers/{editor,form,text_generators}.rs to read/write the scoped machine and support Project-scope providerInstances[id].enabled overrides (OverrideEdit::ProviderInstanceEnabled).
  3. ST-SHELL (#139, #92) -> done

    • Added resolve_project_settings, project_override_present, effective_agent_device_access, and effective_provider_enabled in crates/core/src/settings/mod.rs so Project/Checkout scope resolves projectSettingsOverrides on read and shows "Reset to inherited value" (apply_scoped_reset).
    • Marked environment-wide rows inert at Project/Checkout scope (env_only_unavailable, matching settingsLayout.tsx:371, 447-448) across threads, worktrees, source_control, maintenance, general (Labs), voice, devices, secrets, and providers.
    • Wired SaveTarget::ScopedEnvironments multi-env write fan-out w/ partial-failure reporting, scoped_rpc, scoped_session, scoped_connected_now, .all() capability check for thread_auto_settlement_scope, scoped_model_disabled_reason, and is_search_scope_available scope notice across all scoped settings panels.
  4. Strict partial closeouts (keeping out-of-scope / open items honest)

    • ST-GENERAL (#188, partial): Added Language selector + reactive i18n; #188 stays open for explicit-script/non-macOS/macOS 13 runtime verification.
    • ST-CHAT (#251, partial): Wired screenReaderAnnouncements & screenReaderWindowTitle settings + Screen reader section; composerRichTextEnabled stays unavailable until native rich-text composer lands.
    • ST-DIFFS (#99, partial): Added proactivePanelsEnabled contract/persistence; control rendered via unavailable_group until native proactive panels runtime lands in workspace/right_panel.
    • ST-PROJECTS (#185, partial): Added cross-page project-scope notice, bidirectional sync between self.scope.project and self.projects.selected, and fleet-wide select_project_id; remaining new_thread.rs draft header, non-active env draft menu, and Lucide/drawing items stay tracked under #185.

Verification (56ac06e88a)

  • cd apps/native && cargo clippy -p t3-core -p t3-native --all-targets -- -D warnings — passed (0 warnings)
  • cd apps/native && cargo test -p t3-core i18n — 5 passed
  • cd apps/native && cargo test -p t3-core client_settings — 22 passed
  • cd apps/native && cargo test -p t3-core settings — 221 passed
  • cd apps/native && cargo test -p t3-core providers — 80 passed
  • cd apps/native && T3_NATIVE_HOME=$(mktemp -d) cargo test -p t3-native i18n -- --test-threads=1 — 1 passed
  • cd apps/native && T3_NATIVE_HOME=$(mktemp -d) cargo test -p t3-native chatgpt_setup -- --test-threads=1 — 2 passed
  • cd apps/native && T3_NATIVE_HOME=$(mktemp -d) cargo test -p t3-native --features snapshot settings -- --test-threads=1 — 49 passed
  • vp fmt --check apps/native/parity/LEDGER.md — passed
  • node apps/native/scripts/gen-theme.ts --check — passed

Closes #378, #139, #92.

Built with Antigravity (f3-i18n-settings).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant