Skip to content

i18n: remove duplicate 'Building the game' key in 20 locale files - #575

Merged
elripalda merged 3 commits into
elripalda:mainfrom
dung997tb:fix/dedup-building-the-game
Nov 25, 2026
Merged

elripalda merged 3 commits into
elripalda:mainfrom
dung997tb:fix/dedup-building-the-game

Conversation

@dung997tb

@dung997tb dung997tb commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What

The key "Building the game" appears twice in 20 of the 22 files in ui/i18n/ (only en-GB.json and fr-CA.json don't contain the key at all). This PR removes the first occurrence from each of the 20 files and keeps the second.

Why this is safe

This duplication is inherited — the key was defined in two different sections of the locale files and both copies survived. Every JSON parser (including the one the launcher uses) resolves a duplicate key by taking the last value, so the first copy is already dead today. Removing it changes nothing at runtime:

  • Verified mechanically for all 20 files: the parsed dictionary is identical before and after the change (same keys, same effective values), and each file's key count drops by exactly 1.
  • All 20 files still parse as valid JSON.

One nuance

In most files both copies hold the same translation. In four files the two copies differ — id, ja, nl, and vi (e.g. vi: Đang dựng game vs Đang dựng trò chơi; ja: ゲームをビルドしています vs ゲームをビルド中). In those files the removed first copy is a superseded translation that no parser has ever used; the copy kept is the one users actually see. If a locale owner prefers the other wording, that's a one-line follow-up — this PR intentionally doesn't change any effective string.

Found while auditing the locale files with the repo's own i18n tooling. Separate from the Vietnamese translation PRs. The change itself is 20 single-line deletions.

@Xarishark Xarishark left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All notes resolved and CI passed. Approving.

@elripalda
elripalda merged commit f41f4aa into elripalda:main Nov 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants