mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7738] [Feature]: Localize the tracker slices' validation messages (Agent Suite + State Editor) #4271
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#4271
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?
Originally created by @ylli-selmani on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7738
Originally assigned to: @SpicyMarinara, @ylli-selmani on GitHub.
What problem does this solve?
AGENT_SUITE_TRACKER_SLICES(packages/client/src/lib/agent-suite-tracker-slices.ts) returns its validation errors as hard-coded English strings, for example "Scene data must be a JSON object", "Present characters must be a JSON array", and the Inventory Tracker row errors. Both Agent Suite and the new State Editor (#7737) show them as they are, so users of other languages see English when a tracker block or State Editor section doesn't fit its shape.CodeRabbit's "Localized UI text" pre-merge check flagged this on #7737. It was left for a follow-up on purpose, because the strings are older than that PR, Agent Suite uses them too, and
open-issues.regression.tschecks their exact text.Proposed solution
buildPatchreturn a typed error code plus parameters (for example{ code: "notArray", field: "presentCharacters" }, or an inventory group and row problem) instead of an English sentence.ui.*localization keys, and use it in both Agent Suite and the State Editor's game-state modal.en.json, and update theopen-issues.regression.tsassertions to check the codes instead of the English text.Alternatives considered
Additional context
packages/client/src/lib/state-editor/game-state-editor-source.tsforwards the slice error, andGameStateEditorModal.tsxprefixes it with the section label.Template check
🤖 Generated with Claude Code
@ylli-selmani commented on GitHub (Oct 19, 2026):
well, i'll close this as not planned temporarily then too
@SpicyMarinara commented on GitHub (Oct 19, 2026):
Done on staging by #7805.