mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4087] [Issue]: Extracted UI fragments cannot compose correct sentences in some languages #2212
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#2212
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 @mallang0723 on GitHub (Jul 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4087
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The static JSX localization migration split some UI sentences into several
locale keys. Each key is fine on its own, but the composed sentence cannot
be expressed correctly in languages whose grammar differs from English, and
a translator cannot fix it from the locale file. I hit four distinct
patterns while completing the Korean catalog.
Expected behavior
A translator can produce a correct sentence for every user-visible string
by editing only their locale file.
Actual behavior
Four patterns block that. Counts are as of
30c647f5constaging.1. The singular branch is a hardcoded empty string.
packages/client/src/components/agents/CustomAgentRepositoriesModal.tsx:81The plural suffix is a locale key (
ui.noodle.stageprofileview.s, Englishvalue
"s") but the singular branch is a literal"", so there is no keyto translate. That key appears at 114 call sites and
ui.lorebooks.lorebookeditor.esat 4.에이전트 3개 삭제됨에이전트 3개s 삭제됨Korean has no grammatical number, so no value for
"s"is correct. Thelocale check requires every interpolation token to be preserved and rejects
empty strings, so this cannot be solved in
ko.json.2. One word split across two locale keys.
packages/client/src/components/lorebooks/LorebookEditor.tsx:2863— thehost string is
Re-vectorize all {{value1}} vectorizable entr{{value2}} with {{value3}}?, splitting the noun intoentr+y/ies. Leaving thefragments in English renders as
항목 3개ies. 8 call sites across 4fragment pairs.
Both branches are keys here, so I could work around it by translating both
variants to the Korean counter
개and letting the host sentence carry thetoken. That only works because Korean collapses the two forms.
3. One key used in two grammatical roles.
ui.game.gamesurfacecomponent.no(English"No") is both a Yes/No buttonlabel (
SceneBanner.tsx:190,:236,GameSurface.tsx:11947) and the firstword of a sentence (
AgentsPanel.tsx:999,SpriteGenerationModal.tsx:1760). Korean needs아니요for the button butexpresses sentence negation at the end of the clause.
동영상 생성 연결이 없습니다.아니요 동영상 생성 연결이 없습니다.ui.agents.agentcatalogview.installedandui.agents.agenteditor.usehavethe same problem.
4. Missing separator between adjacent fragments.
packages/client/src/components/modals/STBulkImportModal.tsx:668concatenates two fragments with no separator, and the second starts with
·. This one is visible in English too.Custom or user preset · modified Mar 1, 2026Custom or user preset· modified Mar 1, 2026Steps to reproduce
Behavior > Language.
read the confirmation text.
connection configured.
that has a modified date. Reproduces with the interface in English.
Environment
Additional context
en.jsonalready uses i18next plural keys (_one/_other) correctly inabout 60 places, so the infrastructure is there; it is the migrated strings
that are inconsistent. Extracting whole sentences rather than grammatical
fragments would also address 2 and 3.
Patterns 1 and 3 are invisible in English, which is probably why they
survived the migration. Pattern 4 is not.
I am not sure what scope you would want, and these four could reasonably be
separate PRs. Happy to help with whichever part is useful, including the
Korean side once the keys settle — and equally fine if you would rather
handle it yourselves.
Template check
@SpicyMarinara commented on GitHub (Jul 25, 2026):
🔧 @SpicyMarinara is handling this in draft PR #4093 as part of the current open-issue sweep. The PR targets
staging; implementation and validation are in progress.@SpicyMarinara commented on GitHub (Jul 25, 2026):
Resolved by #4093 and merged into staging in commit
917c3128a4.