Test that each view rendered in French shows no English catalogue value #253

Closed
opened 2026-10-05 09:47:24 +00:00 by root · 4 comments
root commented 2026-10-05 09:47:24 +00:00 (Migrated from gitlab.core-project.space)

Imported from GitHub amaurycoudr/chess-project#253, opened by @amaurycoudr on 2026-10-05 09:47 UTC.
Closed on GitHub on 2026-10-09 11:33 UTC as not planned.


Problem Statement

front/no-literal-copy can't see English kept in plain tables and constants. After #251, such English would still show in French.

Solution

A test that renders each view in French and asserts that no English catalogue value (apps/front/messages/en.json) appears. Cost judged negligible (~100–300 ms).

Implementation Decisions

  • Must not flag SITE_NAME ("Chess"), LANGUAGE_NAMES ("English"), SAN or Room codes.
  • Needs Paraglide on main: start after #251 merges.
> _Imported from GitHub [amaurycoudr/chess-project#253](https://github.com/amaurycoudr/chess-project/issues/253), opened by [@amaurycoudr](https://github.com/amaurycoudr) on 2026-10-05 09:47 UTC._ > _Closed on GitHub on 2026-10-09 11:33 UTC as not planned._ <!-- github-issue:253 --> --- ## Problem Statement `front/no-literal-copy` can't see English kept in plain tables and constants. After #251, such English would still show in French. ## Solution A test that renders each view in French and asserts that no English catalogue value (`apps/front/messages/en.json`) appears. Cost judged negligible (~100–300 ms). ## Implementation Decisions - Must not flag `SITE_NAME` ("Chess"), `LANGUAGE_NAMES` ("English"), SAN or Room codes. - Needs Paraglide on main: start after #251 merges.
root commented 2026-10-05 09:47:24 +00:00 (Migrated from gitlab.core-project.space)

GitHub issue relations, imported as "related" links (GitLab CE has no sub-issues or blocking links).

> _GitHub issue relations, imported as "related" links (GitLab CE has no sub-issues or blocking links)._ <!-- github-relations --> - Blocked by: #242
root commented 2026-10-09 11:33:05 +00:00 (Migrated from gitlab.core-project.space)

Imported from a GitHub comment by @amaurycoudr on 2026-10-09 11:33 UTC.

Not planned: see the reasoning on #313. If the gap matters later, a lint extension flagging letter-bearing string literals in module-level constants of .tsx files would cover it statically, in a dedicated rules PR.

> _Imported from a [GitHub comment](https://github.com/amaurycoudr/chess-project/issues/253#issuecomment-6080024513) by [@amaurycoudr](https://github.com/amaurycoudr) on 2026-10-09 11:33 UTC._ <!-- github-comment:6080024513 --> Not planned: see the reasoning on #313. If the gap matters later, a lint extension flagging letter-bearing string literals in module-level constants of `.tsx` files would cover it statically, in a dedicated rules PR.
root (Migrated from gitlab.core-project.space) closed this issue 2026-10-09 11:33:06 +00:00
root commented 2026-10-13 08:40:52 +00:00 (Migrated from gitlab.core-project.space)

mentioned in issue #242

mentioned in issue #242
root commented 2026-10-13 08:41:52 +00:00 (Migrated from gitlab.core-project.space)

marked this issue as related to #242

marked this issue as related to #242
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.

Reference
amaurycoudr/chess-project#253
No description provided.