[GH-ISSUE #4393] [Issue]: Plural suffix fragment keys cannot be localized (stageprofileview.s, lorebookeditor.es) #2385

Closed
opened 2026-10-21 05:47:48 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @mallang0723 on GitHub (Aug 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4393

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Two catalog keys hold bare English plural suffixes ("s", "es") that are
concatenated after a count word at the call site, which cannot be localized
into Korean (or most non-European languages).

Expected behavior

Count-dependent strings use i18next count-based keys (item_one /
item_other), as the rest of the catalog already does, so locales without
plural markers can render a clean count word.

Actual behavior

  • ui.noodle.stageprofileview.s = "s" and ui.lorebooks.lorebookeditor.es
    = "es" render output like "3개s" with any non-empty Korean value.
  • The linguistically correct Korean value is an empty string, but
    scripts/check-locales.mjs rejects empty values ("must contain non-empty
    text").
  • Leaving the keys untranslated falls back to English and still renders the
    stray suffix after a Korean count word.

Steps to reproduce

  1. Add "ui.noodle.stageprofileview.s": "" to ko.json.
  2. Run pnpm localization:check → it fails on the empty value.
  3. Alternatively translate it as any non-empty string and view the Noodle
    stage profile with Korean locale → suffix renders after the count.

Environment

  • Marinara Engine version: staging, commit 1d7605911
  • Install type: source
  • OS + version: Linux
  • Browser or app shell: any

Logs, screenshots, or video

Not applicable — see the checker error message above.

Additional context

I left these two keys out of the accompanying Korean locale PR on purpose;
happy to help test once the call sites move to count-based keys.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @mallang0723 on GitHub (Aug 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4393 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Two catalog keys hold bare English plural suffixes ("s", "es") that are concatenated after a count word at the call site, which cannot be localized into Korean (or most non-European languages). ## Expected behavior Count-dependent strings use i18next count-based keys (`item_one` / `item_other`), as the rest of the catalog already does, so locales without plural markers can render a clean count word. ## Actual behavior - `ui.noodle.stageprofileview.s` = "s" and `ui.lorebooks.lorebookeditor.es` = "es" render output like "3개s" with any non-empty Korean value. - The linguistically correct Korean value is an empty string, but `scripts/check-locales.mjs` rejects empty values ("must contain non-empty text"). - Leaving the keys untranslated falls back to English and still renders the stray suffix after a Korean count word. ## Steps to reproduce 1. Add `"ui.noodle.stageprofileview.s": ""` to `ko.json`. 2. Run `pnpm localization:check` → it fails on the empty value. 3. Alternatively translate it as any non-empty string and view the Noodle stage profile with Korean locale → suffix renders after the count. ## Environment - Marinara Engine version: staging, commit 1d7605911 - Install type: source - OS + version: Linux - Browser or app shell: any ## Logs, screenshots, or video Not applicable — see the checker error message above. ## Additional context I left these two keys out of the accompanying Korean locale PR on purpose; happy to help test once the call sites move to count-based keys. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:47:48 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2385
No description provided.