hex/ios/HEXMobile
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 39a3d8b710 iOS: choose per dictation whether Translate what I say pastes translated
A Spanish-speaking TestFlight tester liked Translate what I say but always
speaks Spanish and only sometimes wants the English. Until now translation
was all or nothing, set in Experiments.

- DictationTranslationSettings.pastesTranslation (App Group key
  experiments.translateDictation.pastesTranslation, default true, so
  existing users still get translations) is a switch that keeps the last
  choice. translateIfEnabled skips translation while it says as spoken, in
  the app (warm session, handoff, Action Button) and in in-keyboard
  dictation alike.
- TranslationPasteChoice names both sides in English, like the rest of
  Hex's copy: "Paste in English" / "Paste in Spanish" ("Paste as spoken"
  when the dictation language is unknown, "Norwegian" without "Bokmål").
  It exists only while the experiment is on, the keyboard has Full Access,
  and you dictate in a language other than the target.
- Full keyboard: the Hex key menu gets two rows under Language, each with a
  checkmark, and the space bar reads "Español → English" while dictations
  paste translated.
- Dictation bar: the language tray gets a "Paste in English" chip, lit
  while translating, and the language label reads "Español → English". The
  label now has layout priority so it isn't cut to "Español → E…".
- Settings: a "Paste in English" toggle under Insert in mirrors the switch.
  Turning the experiment on resets it to translated.
- Simulator fixtures: --translate-to <code> and --paste-as-spoken.

Verified: new TranslationPasteSwitchTests (titles and visibility, the
remembered choice, as spoken skipping translation, the model's label, and
the Hex key menu's rows, their checkmarks and their callback). Full
xcodebuild test: 230 tests, 0 failures, 1 skipped (AppleSpeechClipTests).
Rendered on an iPhone 18 Pro simulator (iOS 27.2): full-keyboard-style in
light and dark, translated and as spoken, without translation (unchanged),
full-keyboard-idle, keyboard-language, keyboard-warm, keyboard-recording and
experiments. The simulator can't actually translate (Apple's
LanguageAvailability says es -> en is unsupported there), so a translated
paste is unverified on device.
2026-11-20 09:38:45 -05:00
..
Assets.xcassets feat: add iOS dictation keyboard 2026-07-19 15:21:45 -04:00
AppleSpeechTranscriber.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
AudioBackend.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
ContentView.swift iOS: remove the return-to-app feature; swipe back after a handoff (#2042) 2026-11-20 13:58:31 +00:00
CustomVocabularyEditor.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationController.swift iOS: keep the screen on while Hex records or transcribes 2026-11-20 09:38:45 -05:00
ExperimentsCard.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
FullKeyboardSnapshotStage.swift iOS: grow the keyboard for a taller recording bar and show one transcribing status (#2038) 2026-11-20 13:41:32 +00:00
HexIntents.swift feat(ios): polish iPhone keyboard dictation, warm sessions, and Live Activity (#574) 2026-10-30 23:35:45 -07:00
HEXMobile.entitlements Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -05:00
HEXMobileApp.swift iOS: remove the return-to-app feature; swipe back after a handoff (#2042) 2026-11-20 13:58:31 +00:00
Info.plist Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -05:00
KeyboardPreviewHost.swift iOS: choose per dictation whether Translate what I say pastes translated 2026-11-20 09:38:45 -05:00
KeyboardSetup.swift iOS: ask for the microphone before sending setup to Settings (#2036) 2026-11-20 13:27:33 +00:00
LanguageSettingsRows.swift iOS: Norwegian, Spanish and German full-keyboard layouts 2026-11-20 07:52:48 -05:00
LiveActivityCoordinator.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
Onboarding.swift iOS onboarding: say 'Allow Full Access' in the Keyboard row itself (#2044) 2026-11-20 14:12:19 +00:00
OnboardingProgress.swift iOS: add a three-page first-run onboarding (#2031) 2026-11-20 12:36:45 +00:00
ParakeetTranscriber.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
TranscriptCleanup.swift iOS: dictate in every language Apple Speech has on device 2026-11-20 07:52:32 -05:00
TranslateDictationRow.swift iOS: choose per dictation whether Translate what I say pastes translated 2026-11-20 09:38:45 -05:00
TypingInsightsView.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
TypingLogsView.swift ios: record raw typing logs from Hex's keyboard (experiment) (#2024) 2026-11-20 02:13:16 +00:00