From 1c0a13475c4f9c317a02964ab3120be3ae83045a Mon Sep 17 00:00:00 2001 From: Bastian Wagner Date: Fri, 21 Aug 2026 22:02:26 +0200 Subject: [PATCH] feat(web): translate location, travel, and world-map screen copy to English --- .../location-interaction-panel.component.html | 6 ++--- .../world/location-node.component.html | 2 +- .../location-page.component.html | 14 +++++----- .../location-page.component.spec.ts | 8 +++--- .../location-sidebar.component.html | 22 ++++++++-------- .../location-sidebar.component.spec.ts | 4 +-- .../world/travel-panel.component.html | 26 +++++++++---------- .../features/world/travel-panel.component.ts | 2 +- .../features/world/world-page.component.html | 10 +++---- .../world/world-page.component.spec.ts | 12 ++++----- 10 files changed, 53 insertions(+), 53 deletions(-) diff --git a/apps/web/src/app/features/world/location-interaction-panel/location-interaction-panel.component.html b/apps/web/src/app/features/world/location-interaction-panel/location-interaction-panel.component.html index 69ff7ee..2781546 100644 --- a/apps/web/src/app/features/world/location-interaction-panel/location-interaction-panel.component.html +++ b/apps/web/src/app/features/world/location-interaction-panel/location-interaction-panel.component.html @@ -3,14 +3,14 @@ class="interaction-panel" role="dialog" aria-modal="false" - [attr.aria-label]="result ? result.title : 'Handlung nicht möglich'" + [attr.aria-label]="result ? result.title : 'Action not possible'" data-interaction-panel > @if (result) {

{{ result.title }}

{{ result.text }}

} @else { -

Nichts zu entdecken

+

Nothing to discover

@@ -22,7 +22,7 @@ data-interaction-close (click)="closePanel.emit()" > - Schließen + Close } diff --git a/apps/web/src/app/features/world/location-node.component.html b/apps/web/src/app/features/world/location-node.component.html index 3a9499d..f09f468 100644 --- a/apps/web/src/app/features/world/location-node.component.html +++ b/apps/web/src/app/features/world/location-node.component.html @@ -12,6 +12,6 @@ {{ location.name }} {{ - current ? 'Aktueller Ort' : selected ? 'Ausgewähltes Ziel' : 'Erreichbar' + current ? 'Current Location' : selected ? 'Selected Destination' : 'Reachable' }} diff --git a/apps/web/src/app/features/world/location-page/location-page.component.html b/apps/web/src/app/features/world/location-page/location-page.component.html index 1c9beb4..0a0b9e4 100644 --- a/apps/web/src/app/features/world/location-page/location-page.component.html +++ b/apps/web/src/app/features/world/location-page/location-page.component.html @@ -1,4 +1,4 @@ -
+
@if (store.location(); as location) {
@@ -16,7 +16,7 @@ @if (runtimeArtwork(location.localArtworkPath); as runtime) { } - +
@@ -36,7 +36,7 @@ />
-
diff --git a/apps/web/src/app/features/world/location-page/location-page.component.spec.ts b/apps/web/src/app/features/world/location-page/location-page.component.spec.ts index 8335f40..1d2eb97 100644 --- a/apps/web/src/app/features/world/location-page/location-page.component.spec.ts +++ b/apps/web/src/app/features/world/location-page/location-page.component.spec.ts @@ -75,7 +75,7 @@ describe('LocationPageComponent', () => { const image = element.querySelector('img') as HTMLImageElement; expect(image.getAttribute('src')).toBe('/images/backgrounds/Aschestrasse.png'); - expect(image.getAttribute('alt')).toBe('Ortsansicht: Verbrannte Straße'); + expect(image.getAttribute('alt')).toBe('Location view: Verbrannte Straße'); }); it('places every hotspot on the artwork', async () => { @@ -205,14 +205,14 @@ describe('LocationPageComponent', () => { const actions = element.querySelectorAll('[data-action]'); expect([...actions].every((action) => action.disabled)).toBe(true); - expect(element.textContent).toContain('Einen Moment…'); + expect(element.textContent).toContain('One moment…'); }); it('renders a restrained loading state that shows no misplaced hotspots', async () => { const { element } = await setup(null); expect(element.querySelector('[role="status"]')?.textContent).toContain( - 'Der Ort wird geladen', + 'Loading location', ); expect(element.querySelectorAll('app-location-poi')).toHaveLength(0); }); @@ -224,7 +224,7 @@ describe('LocationPageComponent', () => { fixture.detectChanges(); expect(element.querySelector('[role="alert"]')?.textContent).toContain( - 'Ort konnte nicht geladen werden.', + 'Could not load location.', ); element.querySelector('[data-location-retry]')?.click(); diff --git a/apps/web/src/app/features/world/location-sidebar/location-sidebar.component.html b/apps/web/src/app/features/world/location-sidebar/location-sidebar.component.html index 0d194ad..58bb75e 100644 --- a/apps/web/src/app/features/world/location-sidebar/location-sidebar.component.html +++ b/apps/web/src/app/features/world/location-sidebar/location-sidebar.component.html @@ -1,28 +1,28 @@ -