feat(web): translate location, travel, and world-map screen copy to English

This commit is contained in:
Bastian Wagner
2026-08-21 22:02:26 +02:00
parent ca3e072807
commit 1c0a13475c
10 changed files with 53 additions and 53 deletions

View File

@@ -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<HTMLButtonElement>('[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<HTMLButtonElement>('[data-location-retry]')?.click();