mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8629] [MERGED] fix(game): translate ruleset layer names in Game setup #8712
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8712
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8629
Author: @kolacheee
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @kolacheee
Base:
staging← Head:claude/project-thread-in9wee📝 Commits (1)
951aa80fix(game): read ruleset layer names through the ruleset's translation in Game setup (#8628)📊 Changes
2 files changed (+71 additions, -34 deletions)
View changed files
📝
packages/client/src/components/game/GameSetupRulesChooser.tsx(+56 -34)📝
scripts/regressions/ruleset-layers-client.regression.ts(+15 -0)📄 Description
Linked issue
Closes #8628
Why this change
In the Rules step of Game setup, a ruleset layer's toggle (for example the 5e SRD's Low magic) showed its name and summary in English even when the ruleset ships a language pack for the UI language. The game's sheet already showed the same names translated.
What changed
useRulesetDefinitionText, the same lookup the sheet uses. The layer name, its summary and the "ruled out by" name go through it. The ids the toggles send are unchanged.ruleset-layers-client.regression.tsnow checks that the toggles read those words through the translation. It fails on the old chooser.Validation
node scripts/run-regressions.mjs --filter scripts/regressions/ruleset-layers-client.regression.tspasses (and fails with the old chooser)tsc --noEmit, the client-lanes tsconfig, ESLint and Prettier on the changed files passpnpm checkpasses locallyManual verification notes
Docs and release impact
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.