fix(test): translate the remaining Worn Shortsword and Padded Helm fixture names
Task 10 review sweep found two German strings the closing sweep missed: 'Abgenutztes Kurzschwert' (8 occurrences across 5 spec files, the real seeded worn-short-sword item) and 'Gepolsterter Helm' (1 occurrence, a synthetic test-only bonus-hp-helm fixture). Translated both to their English equivalents per the item-content.ts glossary and slice style. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ACkMEDYiwtcfchqKkiUJNX
This commit is contained in:
@@ -255,7 +255,7 @@ function itemDefinition(
|
|||||||
return {
|
return {
|
||||||
id: WORN_SWORD_DEFINITION_ID,
|
id: WORN_SWORD_DEFINITION_ID,
|
||||||
key: 'worn-short-sword',
|
key: 'worn-short-sword',
|
||||||
name: 'Abgenutztes Kurzschwert',
|
name: 'Worn Shortsword',
|
||||||
description: '',
|
description: '',
|
||||||
type: ItemType.EQUIPMENT,
|
type: ItemType.EQUIPMENT,
|
||||||
equipmentSlot: EquipmentSlot.WEAPON,
|
equipmentSlot: EquipmentSlot.WEAPON,
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ function itemDefinition(
|
|||||||
return {
|
return {
|
||||||
id: 'def-worn-sword',
|
id: 'def-worn-sword',
|
||||||
key: 'worn-short-sword',
|
key: 'worn-short-sword',
|
||||||
name: 'Abgenutztes Kurzschwert',
|
name: 'Worn Shortsword',
|
||||||
description: '',
|
description: '',
|
||||||
type: ItemType.EQUIPMENT,
|
type: ItemType.EQUIPMENT,
|
||||||
equipmentSlot: EquipmentSlot.WEAPON,
|
equipmentSlot: EquipmentSlot.WEAPON,
|
||||||
@@ -261,7 +261,7 @@ describe('EquipmentService', () => {
|
|||||||
characterItemId: WORN_SWORD_ITEM_ID,
|
characterItemId: WORN_SWORD_ITEM_ID,
|
||||||
item: {
|
item: {
|
||||||
key: 'worn-short-sword',
|
key: 'worn-short-sword',
|
||||||
name: 'Abgenutztes Kurzschwert',
|
name: 'Worn Shortsword',
|
||||||
rarity: 'COMMON',
|
rarity: 'COMMON',
|
||||||
iconPath: '/images/items/worn-short-sword.png',
|
iconPath: '/images/items/worn-short-sword.png',
|
||||||
},
|
},
|
||||||
@@ -464,7 +464,7 @@ describe('EquipmentService', () => {
|
|||||||
const bonusHpHelm = itemDefinition({
|
const bonusHpHelm = itemDefinition({
|
||||||
id: 'def-bonus-hp-helm',
|
id: 'def-bonus-hp-helm',
|
||||||
key: 'bonus-hp-helm',
|
key: 'bonus-hp-helm',
|
||||||
name: 'Gepolsterter Helm',
|
name: 'Padded Helm',
|
||||||
equipmentSlot: EquipmentSlot.HEAD,
|
equipmentSlot: EquipmentSlot.HEAD,
|
||||||
bonusHp: 20,
|
bonusHp: 20,
|
||||||
weaponDamage: 0,
|
weaponDamage: 0,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ const wornSword: InventoryItem = {
|
|||||||
equipped: true,
|
equipped: true,
|
||||||
item: {
|
item: {
|
||||||
key: 'worn-short-sword',
|
key: 'worn-short-sword',
|
||||||
name: 'Abgenutztes Kurzschwert',
|
name: 'Worn Shortsword',
|
||||||
description: 'Item description.',
|
description: 'Item description.',
|
||||||
rarity: 'COMMON',
|
rarity: 'COMMON',
|
||||||
equipmentSlot: 'WEAPON',
|
equipmentSlot: 'WEAPON',
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const inventory: InventoryResponse = {
|
|||||||
equipped: true,
|
equipped: true,
|
||||||
item: {
|
item: {
|
||||||
key: 'worn-short-sword',
|
key: 'worn-short-sword',
|
||||||
name: 'Abgenutztes Kurzschwert',
|
name: 'Worn Shortsword',
|
||||||
description: 'Item description.',
|
description: 'Item description.',
|
||||||
rarity: 'COMMON',
|
rarity: 'COMMON',
|
||||||
equipmentSlot: 'WEAPON',
|
equipmentSlot: 'WEAPON',
|
||||||
@@ -49,7 +49,7 @@ const inventory: InventoryResponse = {
|
|||||||
|
|
||||||
const equipment: EquipmentResponse = {
|
const equipment: EquipmentResponse = {
|
||||||
slots: {
|
slots: {
|
||||||
WEAPON: { characterItemId: 'item-sword', item: { key: 'worn-short-sword', name: 'Abgenutztes Kurzschwert', rarity: 'COMMON', iconPath: '/images/items/worn-short-sword.png' } },
|
WEAPON: { characterItemId: 'item-sword', item: { key: 'worn-short-sword', name: 'Worn Shortsword', rarity: 'COMMON', iconPath: '/images/items/worn-short-sword.png' } },
|
||||||
HEAD: null,
|
HEAD: null,
|
||||||
CHEST: null,
|
CHEST: null,
|
||||||
HANDS: null,
|
HANDS: null,
|
||||||
@@ -150,7 +150,7 @@ describe('InventoryPageComponent', () => {
|
|||||||
const text = (fixture.nativeElement as HTMLElement).querySelector('.inventory-page__equipment-list')?.textContent ?? '';
|
const text = (fixture.nativeElement as HTMLElement).querySelector('.inventory-page__equipment-list')?.textContent ?? '';
|
||||||
|
|
||||||
expect(text).toContain('Weapon');
|
expect(text).toContain('Weapon');
|
||||||
expect(text).toContain('Abgenutztes Kurzschwert');
|
expect(text).toContain('Worn Shortsword');
|
||||||
expect(text).toContain('Head');
|
expect(text).toContain('Head');
|
||||||
expect(text).toContain('Empty');
|
expect(text).toContain('Empty');
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const inventory: InventoryResponse = {
|
|||||||
equipped: true,
|
equipped: true,
|
||||||
item: {
|
item: {
|
||||||
key: 'worn-short-sword',
|
key: 'worn-short-sword',
|
||||||
name: 'Abgenutztes Kurzschwert',
|
name: 'Worn Shortsword',
|
||||||
description: 'Item description.',
|
description: 'Item description.',
|
||||||
rarity: 'COMMON',
|
rarity: 'COMMON',
|
||||||
equipmentSlot: 'WEAPON',
|
equipmentSlot: 'WEAPON',
|
||||||
@@ -48,7 +48,7 @@ const inventory: InventoryResponse = {
|
|||||||
|
|
||||||
const equipment: EquipmentResponse = {
|
const equipment: EquipmentResponse = {
|
||||||
slots: {
|
slots: {
|
||||||
WEAPON: { characterItemId: 'item-sword', item: { key: 'worn-short-sword', name: 'Abgenutztes Kurzschwert', rarity: 'COMMON', iconPath: '/images/items/worn-short-sword.png' } },
|
WEAPON: { characterItemId: 'item-sword', item: { key: 'worn-short-sword', name: 'Worn Shortsword', rarity: 'COMMON', iconPath: '/images/items/worn-short-sword.png' } },
|
||||||
HEAD: null,
|
HEAD: null,
|
||||||
CHEST: null,
|
CHEST: null,
|
||||||
HANDS: null,
|
HANDS: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user