feat(web): translate error messages surfaced from API error codes to English
Translates the five client-side error-message maps (world, hunting, combat, inventory, local-location stores) that re-translate already-English API error codes back to display text, per design doc §4. Also fixes four component specs that hard-coded the same German strings when asserting rendered error text (combat-page, hunt-page, location-interaction-panel, location-page).
This commit is contained in:
@@ -93,7 +93,7 @@ describe('LocalLocationStore', () => {
|
||||
|
||||
await store.runInteraction('inspect-tracks');
|
||||
|
||||
expect(store.interactionError()).toBe('Hier gibt es dazu nichts zu entdecken.');
|
||||
expect(store.interactionError()).toBe("There's nothing to discover here.");
|
||||
expect(store.interactionResult()).toBeNull();
|
||||
expect(store.interactionOpen()).toBe(true);
|
||||
});
|
||||
@@ -107,7 +107,7 @@ describe('LocalLocationStore', () => {
|
||||
|
||||
await store.runInteraction('inspect-tracks');
|
||||
|
||||
expect(store.interactionError()).toBe('Diese Handlung ist gerade nicht möglich.');
|
||||
expect(store.interactionError()).toBe("This action isn't possible right now.");
|
||||
});
|
||||
|
||||
it('closes the panel without clearing the location', async () => {
|
||||
|
||||
Reference in New Issue
Block a user