Skip to content

Add English and Simplified Chinese localization - #8

Merged
eagleoflqj merged 1 commit into
mainfrom
add-localization
Nov 4, 2026
Merged

eagleoflqj merged 1 commit into
mainfrom
add-localization

Conversation

@eagleoflqj

Copy link
Copy Markdown
Member

Add English and Simplified Chinese localization for the simulator discovery and setup interface, including buttons, tooltips, alerts, simulator power states, dynamic messages, and native English plural rules. Keep product names and user-defined device names unchanged.

Store all 46 entries in a UTF-8 assets/Localizable.xcstrings catalog. Swift compiler extraction feeds a GenerateStrings CMake target that preserves existing translations; xcstringstool compiles UTF-8 resources into the app bundle. CI regenerates the catalog and fails if it differs from the committed version.

Update the catalog with cmake --build --preset release --target GenerateStrings.

Validation:

  • CMake/Ninja Release build and strict Swift formatting checks passed.
  • All five CTest checks passed, including native English/Chinese resource loading, UTF-8, interpolation, newlines, and plural counts 0/1/2/40.
  • Repeated extraction produced byte-identical output and preserved all translations.
  • Native GUI previews passed in both languages at 900×600 for no devices, missing Xcode, one device, and 40 devices with scrolling; text remains within bounds and the detail state stays centered.

@eagleoflqj
eagleoflqj merged commit 9bd5226 into main Nov 4, 2026
2 checks passed
@eagleoflqj
eagleoflqj deleted the add-localization branch November 4, 2026 19:52
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