Skip to content

fix(android): localize TalkBack state separators - #739

Merged
houko merged 1 commit into
mainfrom
fix/android-spoken-separator
Nov 19, 2026
Merged

houko merged 1 commit into
mainfrom
fix/android-spoken-separator

Conversation

@houko

@houko houko commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes #704.

Android now carries a localized separator with the spoken role and state words. TalkBack state descriptions use , in the built-in Chinese catalog and keep , in English. The Java runtime protocol and its committed dex and jar artifacts are updated together.

Targets

  • Shared code (core, base, ui, tsx, the nsgo tool)
  • macOS
  • iOS
  • tvOS
  • watchOS
  • Android
  • Windows
  • Linux
  • Web
  • Mini programs
  • Docs or website only

Screenshots

None. This changes TalkBack's spoken description text.

Verification

  • go tool nsgo check -target all
  • go tool nsgo test (the full repository run is covered by the repository's existing checks; this change's package-level Android tests passed)
  • go tool nsgo test ./internal/platform/android
  • ANDROID_HOME=/Users/e-hu/Library/Android/sdk internal/platform/android/runtime/build.sh

Checklist

  • The title is a Conventional Commit, such as fix(linux): keep the caret after a paste; a squash merge uses it as the commit subject.
  • Docs whose facts change are updated, and CHANGELOG.md's Unreleased has a line for a capability users can see.
  • New third-party code, assets and dependencies name their source and license.

@github-actions github-actions Bot added bug Something isn't working conflict Conflicts with the base branch; resolve it first size/S documentation Improvements or additions to documentation Android labels Nov 18, 2026
@houko
houko force-pushed the fix/android-spoken-separator branch from 0227cb7 to bdb0320 Compare November 19, 2026 00:24
@github-actions github-actions Bot removed the conflict Conflicts with the base branch; resolve it first label Nov 19, 2026
@github-actions github-actions Bot added the conflict Conflicts with the base branch; resolve it first label Nov 19, 2026
@houko
houko force-pushed the fix/android-spoken-separator branch from bdb0320 to 1b9d3dc Compare November 19, 2026 01:08
@github-actions github-actions Bot removed the conflict Conflicts with the base branch; resolve it first label Nov 19, 2026
@houko

houko commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator Author

Reviewed. The separator now travels with the other spoken words (SPOKEN_SEPARATOR, , for zh-Hans, , otherwise) and appendState falls back to , if it is missing; the committed classes.dex/classes.jar match a rebuild from the Java source. Verified on a Pixel 3 XL (Android 12) by reading each node's getStateDescription(): with zh-Hans an expanded node with value 50% reads 已展开,50% (已展开, 50% on main), and English is unchanged (expanded, 50%). CI is green on 1b9d3dc; earlier TestWebInput failures in the macOS gallery job are tracked in #753 and did not recur.

@houko
houko merged commit 8e1cddc into main Nov 19, 2026
20 checks passed
@houko
houko deleted the fix/android-spoken-separator branch November 19, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android bug Something isn't working documentation Improvements or additions to documentation size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

android: TalkBack state parts are joined with an English ", " whatever the app's language

1 participant