Skip to content
This repository was archived by the owner on Aug 5, 2026. It is now read-only.

feat: Level-Texte übersetzt, Kategoriefilter entfernt, Ranglisten-Header korrigiert - #7

Merged
dev0zzz merged 1 commit into
mainfrom
feat/translate-levels-drop-category-filter
Jul 23, 2026
Merged

feat: Level-Texte übersetzt, Kategoriefilter entfernt, Ranglisten-Header korrigiert#7
dev0zzz merged 1 commit into
mainfrom
feat/translate-levels-drop-category-filter

Conversation

@dev0zzz

@dev0zzz dev0zzz commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Level-Texte zweisprachig

Beschreibungen und Kategorienamen gibt es jetzt auf Deutsch und Englisch, aus einer gemeinsamen Tabelle (src/levels/descriptions.ts): Der Generator schreibt die deutsche Zeile ins Level-JSON, die UI schlägt daraus die englische nach.

Level-Namen bleiben deutsch — „Nadeleis", „Brandspur" sind Eigennamen, die die Sektor-Identität tragen; übersetzt würden sie flach.

Ein Test läuft über jedes ausgelieferte Level und schlägt fehl, wenn Beschreibung oder Kategorie keine Entsprechung hat. So sind die dreizehn handgeschriebenen Anker-Zeilen aufgefallen: Die stammen nicht aus den Generator-Pools und hätten in der englischen Oberfläche deutsch dagestanden.

Kategoriefilter entfernt

Wie gewünscht — es werden schlicht alle Level der aktiven Welt gezeigt. Die Kategorie beschriftet weiterhin jede Karte, sie filtert nur nicht mehr.

Rangliste

  • Der rechtsbündige „Zeit"-Header saß sichtbar neben seiner Spalte. letter-spacing hängt auch nach dem letzten Buchstaben, was ihn nach links schob und wie ein abgeschnittenes Wort aussah. Der Header bekommt diesen Abstand jetzt als Padding zurück.
  • Die Liste brach bei zehn Einträgen ab. Sie scrollt ohnehin, deshalb jetzt 50: Bei zehn sieht der elfte Spieler seine eigene Zeile nicht mehr — genau die Zahl, für die er hergekommen ist.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SU6PBvGFbeHyKhBgnAnz1H

…d header

Level descriptions and category names are bilingual now. They live in one
shared table (src/levels/descriptions.ts): the generator picks the German line
and writes it into the level JSON, the UI looks that line back up for its
English twin. Level NAMES stay German — "Nadeleis", "Brandspur" are proper
nouns carrying the sector identity, and translating them would flatten it.

A test walks every shipped level and fails if its description or category has
no twin, which is how the thirteen hand-written anchor lines were found: they
never came from the generator's pools and would have shown German inside the
English UI.

Category filter bar removed as requested — every level of the active world is
simply shown. The category still labels each card, it just no longer filters.

Leaderboard, two things noticed while in there:
- The right-aligned "Zeit" header sat visibly off its column. letter-spacing
  hangs after the LAST glyph too, which shoved it left and read as a cut-off
  word; the header now gets that space back as padding.
- The board cut off at ten entries. It scrolls anyway, so the cap is 50 now —
  at ten, the eleventh player stops being able to see their own row, which is
  the one number they came for.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SU6PBvGFbeHyKhBgnAnz1H
@dev0zzz
dev0zzz merged commit bb581a6 into main Jul 23, 2026
2 checks passed
@dev0zzz
dev0zzz deleted the feat/translate-levels-drop-category-filter branch July 23, 2026 11:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant