diff --git a/apps/api/src/reputation/reputation-rank.spec.ts b/apps/api/src/reputation/reputation-rank.spec.ts index 5750049..2cf731a 100644 --- a/apps/api/src/reputation/reputation-rank.spec.ts +++ b/apps/api/src/reputation/reputation-rank.spec.ts @@ -4,7 +4,7 @@ describe('resolveReputationRank', () => { it('resolves 0 reputation to Stranger with a next threshold of 100', () => { expect(resolveReputationRank(0)).toEqual({ key: 'STRANGER', - label: 'Fremder', + label: 'Stranger', threshold: 0, nextThreshold: 100, }); diff --git a/apps/api/src/reputation/reputation-rank.ts b/apps/api/src/reputation/reputation-rank.ts index a09c534..5029bb1 100644 --- a/apps/api/src/reputation/reputation-rank.ts +++ b/apps/api/src/reputation/reputation-rank.ts @@ -5,19 +5,19 @@ export interface ReputationRankInfo { nextThreshold: number | null; } -// Verbatim thresholds from spec §10, German labels for the German-language UI. +// Verbatim thresholds from spec §10, English labels for the English-language UI. // Sorted descending: the first entry whose threshold <= reputation wins. const REPUTATION_RANKS: ReadonlyArray<{ threshold: number; key: string; label: string; }> = [ - { threshold: 1200, key: 'ESTEEMED', label: 'Geachtet' }, - { threshold: 800, key: 'TRUSTED', label: 'Vertraut' }, - { threshold: 500, key: 'RECOGNIZED', label: 'Anerkannt' }, - { threshold: 250, key: 'KNOWN', label: 'Bekannt' }, - { threshold: 100, key: 'TOLERATED', label: 'Geduldet' }, - { threshold: 0, key: 'STRANGER', label: 'Fremder' }, + { threshold: 1200, key: 'ESTEEMED', label: 'Esteemed' }, + { threshold: 800, key: 'TRUSTED', label: 'Trusted' }, + { threshold: 500, key: 'RECOGNIZED', label: 'Recognized' }, + { threshold: 250, key: 'KNOWN', label: 'Known' }, + { threshold: 100, key: 'TOLERATED', label: 'Tolerated' }, + { threshold: 0, key: 'STRANGER', label: 'Stranger' }, ]; export function resolveReputationRank(reputation: number): ReputationRankInfo { diff --git a/apps/api/src/reputation/reputation.controller.spec.ts b/apps/api/src/reputation/reputation.controller.spec.ts index 17fd3e8..ec42258 100644 --- a/apps/api/src/reputation/reputation.controller.spec.ts +++ b/apps/api/src/reputation/reputation.controller.spec.ts @@ -36,7 +36,7 @@ describe('ReputationController', () => { factionName: 'Grenzwacht', reputation: 40, rank: 'STRANGER', - rankLabel: 'Fremder', + rankLabel: 'Stranger', nextThreshold: 100, }, ]; diff --git a/apps/api/src/reputation/reputation.service.spec.ts b/apps/api/src/reputation/reputation.service.spec.ts index b87a7bc..48b676f 100644 --- a/apps/api/src/reputation/reputation.service.spec.ts +++ b/apps/api/src/reputation/reputation.service.spec.ts @@ -315,7 +315,7 @@ describe('ReputationService', () => { factionName: 'Grenzwacht', reputation: 0, rank: 'STRANGER', - rankLabel: 'Fremder', + rankLabel: 'Stranger', nextThreshold: 100, }, ]); @@ -333,7 +333,7 @@ describe('ReputationService', () => { factionName: 'Grenzwacht', reputation: 300, rank: 'KNOWN', - rankLabel: 'Bekannt', + rankLabel: 'Known', nextThreshold: 500, }); });