Strings built as String values (status lines, menu and segment labels,
settings rows, errors, notices, shared model labels) never reached a
string table, so a translation couldn't replace them. They now go
through String(localized:), and the app's own small components that
only take literals (onboarding buttons and rows, page titles, section
headers, setup sheet rows) take LocalizedStringKey. English output is
unchanged.
- "1 step"/"N steps", "N event(s)" and "N dictation(s) learned" no
longer glue English words together; the plural lives in the catalog
or in two whole sentences, so other languages can order them.
- Where you tap off-centre names the eight directions as whole phrases
instead of joining "low" + " and " + "right".
- Language names in messages ("Russian isn't available...", "Use
English", "Paste in Spanish") follow Hex's interface language
(Locale.hexInterface, the bundle's preferred localization) instead of
always English. SpeechModelUnavailable.englishName is renamed
interfaceName. The keyboard has no translations yet, so it still says
English.
- project.yml turns on SWIFT_EMIT_LOC_STRINGS and
LOCALIZATION_PREFERS_STRING_CATALOGS so the compiler extracts these
strings for String Catalogs; without it, an export found only ~50 of
the app's ~230 strings.
Not touched: HEXKeyboard/ and the keyboard's views in
HEXShared/FullKeyboard and KeyboardSurface.swift.
Verified on the Mac Studio (iOS 27.2 simulator, iPhone 16e):
xcodebuild test passes, 277 tests (1 skipped), and the English app
renders as before (onboarding, settings home, Dictation, Privacy).