fix(web): use the German "Ansehen" for Renown in the Topbar
The Topbar rendered the English word "Renown", replacing the German "Stufe" it showed before. That contradicted the slice's own global constraint that all user-facing copy is German, and it was the single English string in a component visible on every screen -- next to "Silber", "Lebenspunkte" and "Charakterdaten werden geladen". This was a spec defect, not an implementation one: the design doc and the task brief both prescribed "Renown" literally. The document's working language leaked into a copy-locked line. "Ruf" is not available as the German term -- this project already uses it for the separate per-faction Reputation system, and the two are deliberately kept distinct. "Ansehen" (standing/prestige) is unclaimed and matches the spec's own definition of Renown as the character's overall significance in the world. Records the decision as R17 in the design doc so later Renown UI does not reintroduce the English term, and renames the now-inaccurate top-bar__level class to top-bar__renown (nothing else referenced it). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
@if (character(); as character) {
|
||||
<div class="top-bar__identity">
|
||||
<span class="top-bar__name">{{ character.name }}</span>
|
||||
<span class="top-bar__level">Renown {{ character.renown }}</span>
|
||||
<span class="top-bar__renown">Ansehen {{ character.renown }}</span>
|
||||
</div>
|
||||
<div class="top-bar__health" aria-label="Lebenspunkte">
|
||||
<span>{{ character.currentHp }} / {{ character.maxHp }}</span>
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.top-bar__level,
|
||||
.top-bar__renown,
|
||||
.top-bar__loading {
|
||||
color: var(--ar-text-muted);
|
||||
font-size: var(--ar-font-sm);
|
||||
|
||||
@@ -37,10 +37,10 @@ describe('TopBarComponent', () => {
|
||||
expect(element.querySelector('[data-top-bar-silver]')?.textContent).toContain('120');
|
||||
});
|
||||
|
||||
it('shows Renown instead of Level, and displays no XP value', async () => {
|
||||
it('shows Ansehen instead of Level, and displays no XP value', async () => {
|
||||
const element = await render(characterFixture({ renown: 3 }));
|
||||
|
||||
expect(element.textContent).toContain('Renown 3');
|
||||
expect(element.textContent).toContain('Ansehen 3');
|
||||
expect(element.querySelector('[data-top-bar-experience]')).toBeNull();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user