Skip to content

feat(i18n): add zh_CN localization with vanilla term fallback and safe settings migration#59

Open
mameikagou wants to merge 4 commits into
OceanRamen:masterfrom
mameikagou:master
Open

feat(i18n): add zh_CN localization with vanilla term fallback and safe settings migration#59
mameikagou wants to merge 4 commits into
OceanRamen:masterfrom
mameikagou:master

Conversation

@mameikagou

Copy link
Copy Markdown

Summary
Introduce i18n support for Brainstorm (English + Simplified Chinese), migrate AutoReroll options to stable keys, and align Tag/Booster naming with Balatro localization.
Details

  • Added Brainstorm_i18n.lua with Brainstorm.t(...), locale dictionaries, and settings migration.
  • Replaced hard-coded UI/toast strings with translation keys.
  • AutoReroll settings now persist stable keys (searchTagKey, searchPackKey) for language-safe behavior.
  • Tag/Booster labels now use Balatro localize(...) for terminology consistency.
    Compatibility
    Backward-compatible with existing settings; migration is designed to preserve legacy selection semantics.
    Test
  • [✅ ] Verify English/Chinese UI text switching
  • [ ✅] Verify Tag/Pack labels match base game terms
  • [ ✅] Verify old settings are preserved after migration
  • [ ✅] Verify reroll/save/load behavior unchanged

@mameikagou

Copy link
Copy Markdown
Author

Hi! Since this PR touches the settings migration and UI logic, I've tested it thoroughly on my end. But please let me know if you want me to adjust any code style or logic. Happy to iterate on it!

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