Skip to content

feat(i18n): add Brazilian Portuguese and English interface translations - #43

Open
josevictoremiliano wants to merge 5 commits into
RoutineMiku:mainfrom
josevictoremiliano:codex/i18n-pt-br-en
Open

josevictoremiliano wants to merge 5 commits into
RoutineMiku:mainfrom
josevictoremiliano:codex/i18n-pt-br-en

Conversation

@josevictoremiliano

@josevictoremiliano josevictoremiliano commented Nov 14, 2026 •

Copy link
Copy Markdown

Summary

Add Brazilian Portuguese and English interface translations while preserving Simplified Chinese, using a dependency-free internationalization layer. This branch integrates upstream main through 0.6.4 (7e2c550), preserving incremental updates, runtime fixes, microphone support, GPU preferences, laboratory settings, automatic diagnostics and manual/tutorial routing.

  • Provide 1,033 messages per locale (zh-CN, pt-BR, en) with consistent interpolation placeholders.
  • Add a persisted language selector in the basic Settings category, automatic system locale selection and English fallback for unsupported locales.
  • Localize the main interface, app-window controls, tray menus, native dialogs, resource summary, settings categories/search, diagnostic controls, startup splash and installer strings.
  • Translate new microphone, dedicated/integrated GPU and laboratory controls while retaining upstream behavior and defaults.
  • Keep localization IPC registered before startup windows and wait for catalogs before rendering splash content.
  • Resolve context-menu and category labels lazily so they cannot capture unloaded translation keys.
  • Preserve issue/error codes, IPC channels and tutorial routing. Diagnostic fix/help buttons pass the original issue code to existing handlers.
  • Include catalog validation in npm test, with isolated Electron UI coverage and an optional lightweight local test installer.

Validation of the current commit

  • Full npm test passed on Windows with Node 20.20.2 and Node 22.23.5: 416 tests across 16 suites passed on each version, followed by validation of 1,033 messages in all three catalogs. Optional real-APK fixture coverage was skipped because no fixture was supplied.
  • npm run test:i18n:ui passed in Portuguese, English and Chinese: language persistence, settings layout, gaming priority, microphone default, GPU selection/status, laboratory navigation/notice, context menus, localized search, diagnostic labels, help-button issue routing, data-partition warnings and app-launch feedback.
  • Both bundled-runtime and download-runtime splash variants passed the isolated Electron UI test in all three languages.
  • Upstream npm run test:ui passed: 21 settings UI checks, including laboratory, microphone and GPU controls.
  • test/pointer-hook-logic.ps1 returned POINTER_HOOK_LOGIC_OK.
  • Syntax checks and git diff --check passed.

Scope and limitations

App names, package names, paths, upstream release notes and raw runtime logs are preserved. Some diagnostics and reports emitted by internal runtime components still use Chinese. The bundled user manual remains in its original language; its entry points and window title are localized. UI tests use mocked Android APIs and do not validate actual Android app startup or real microphone/GPU behavior.

The contributor installed and manually tested the earlier local 0.4.2-i18n.1 build. That manual test is not an end-to-end test of this updated 0.6.4 integration. No new installer or public release was published for the current commit.

The optional lightweight test installer reuses existing runtime data or downloads missing components on demand. No installer binary or Android image is added by this PR. Upstream's release version and update behavior are preserved.

Merge origin/main while preserving saved orientation, translating new gaming controls and orientation messages, and isolating engine tests from running emulators.

@mgramelich mgramelich left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good

Resolve upstream integration conflicts while preserving standalone runtime, drivers, preflight, resource and orientation features. Translate new UI and splash strings, initialize catalogs before startup windows, render context menu labels lazily, and validate translations in the existing CI test command.
Merge current main while preserving native window fixes, ARM retry handling, settings categories, automatic diagnostics and manual routing. Add localized UI messages, keep language selection in the basic category, defer category labels until catalogs load, and validate category search and tutorial routing in isolated UI tests.
Preserve upstream incremental updates, microphone support, GPU preferences, laboratory settings and runtime fixes. Resolve integration conflicts, add corresponding locale messages and validate hardware controls in the isolated UI suite.
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.

2 participants