mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 18:43:23 +01:00
* fix(i18n): route hard-coded UI strings through the locale files
Both locale checkers passed while several user-visible strings never
entered i18n at all, and two referenced keys existed in no locale.
Add 12 keys across all 18 locales, with real translations:
- scan.info-*-desc (6): the scan-reference dialog's long-form
descriptions. The non-English values come from each locale's existing
scan.scan-types-info blob, which already carried the same six
paragraphs as translated HTML.
- settings.title-header, settings.length-header: the two list-view
column headers with no existing equivalent. The other seven reuse
common.platform, common.size, settings.{added,released,rating}-header
and rom.{languages,regions}.
- common.logout-success, common.logout-error, common.invalid-json and
settings.controller-debug-extra-buttons for the remaining literals.
Also repair three sections the upstream blob had degraded: hu_HU lost
the paragraph break in two of them (running two sentences together in
one), and tr_TR was missing the "for example" paragraph entirely.
Drop the dead platformsDrawerOptions computed in the v1 interface
settings: its title and description called settings.group-platforms-by
and -desc, which exist in no locale, and the template used the result
only as a v-for key while the visible label comes from
settings.platforms-drawer-group-by.
Every en_US value is byte-identical to the string it replaces, so the
English UI is unchanged; the other 17 locales stop falling back to
English on these surfaces.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ENyaGKiTZiwPGH7qyN4iMe
* fix(i18n): leave the frozen v1 interface settings untouched
The v1 freeze check flagged frontend/src/components, and removing a dead
computed is not the critical bug fix the allow-v1-changes label exists
for. Restore the file as it stands on master.
settings.group-platforms-by and -desc therefore stay referenced by that
panel while existing in no locale. They render nothing (the template uses
the computed only as a v-for key, and the visible label comes from
settings.platforms-drawer-group-by), so the cost is a vue-i18n "Not found
key" warning in the console until v1 is deleted. Adding the two keys to
all 18 locales instead would put strings no user can see into every
locale for translators to maintain.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ENyaGKiTZiwPGH7qyN4iMe
* fix(i18n): correct the Czech complete-rescan warning
cs_CZ said the complete rescan "využije" (will use) the existing
metadata matches and external IDs, where every other locale says it
wipes them. A Czech user reading the scan reference could start a
destructive rescan believing their provider matches were safe.
The error was in scan.scan-types-info, so it reached the new
info-complete-rescan-desc that derives from it. Both are fixed.
Also condense the test's header comment to the repo's two-line limit and
derive its directory from import.meta.url. Vite gives test files a
working __dirname, so the previous form ran fine, but the ESM spelling
is the better default.
Reported by Greptile (P1, P2) and Copilot on #4619.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ENyaGKiTZiwPGH7qyN4iMe
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>