Skip to content

feat(i18n): auto-switch injected UI language for zh/en#133

Open
T8numen wants to merge 1 commit intoReSo7200:mainfrom
T8numen:feat/auto-language-i18n
Open

feat(i18n): auto-switch injected UI language for zh/en#133
T8numen wants to merge 1 commit intoReSo7200:mainfrom
T8numen:feat/auto-language-i18n

Conversation

@T8numen
Copy link

@T8numen T8numen commented Feb 28, 2026

Closes #132
F231B970AC82EBB3C01DA35611796FD4

Summary

This PR adds locale-aware text rendering for injected InstaEclipse UI and runtime prompts.

What changed

  • Added utils/i18n/I18n.java
  • Replaced hardcoded strings with resource-based lookup in:
    • DialogUtils
    • UIHookManager
    • GhostModeUtils
    • ConfigManager
    • JsonExportActivity
    • JsonImportActivity
    • VersionCheckUtility
  • Added localization keys in:
    • values/strings.xml
    • values-zh-rCN/strings.xml
    • values-zh-rTW/strings.xml

Locale behavior

  • Chinese locale -> Chinese UI
  • TW/HK/MO -> Traditional Chinese
  • Other Chinese regions -> Simplified Chinese
  • Non-Chinese locale -> English fallback

Validation

  • Built and tested debug APK in Android Studio.
  • Verified en-US / zh-CN / zh-TW behavior.
    CBDFD8A0D68D6EC1CDE7AB7905E92FE4
    EF27EC98CF8E17C08C2CA224358459EC

@T8numen T8numen marked this pull request as ready for review February 28, 2026 12:15
@T8numen
Copy link
Author

T8numen commented Feb 28, 2026

The current version 0.4.5 does not have the function of automatically switching to Chinese.

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.

[Feature] Auto language switching for injected UI (Chinese/English)

1 participant