feat(i18n): bilingual Type/Method dropdowns + line echo on offering session

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Chris Chen
2026-05-29 22:07:57 -07:00
parent 4e15e9f630
commit 126e640731
2 changed files with 6 additions and 4 deletions
@@ -16,6 +16,7 @@ import {
GivingCategoryDto, PaymentMethod, OfferingBufferLine, CreateOfferingSessionRequest,
OfferingSessionListItemDto, OfferingSessionDto,
} from '../../models/giving.model';
import { PAYMENT_METHOD_OPTIONS } from '../../../../shared/i18n/option-lists';
interface MemberOption { id: number; displayName: string; }
@@ -33,7 +34,7 @@ export class OfferingSessionPageComponent implements OnInit {
sessionDate: Date = new Date();
dateConflict = false;
categories: GivingCategoryDto[] = [];
readonly paymentMethods: PaymentMethod[] = ['Cash', 'Check', 'Zelle', 'PayPal', 'Other'];
readonly paymentMethods = PAYMENT_METHOD_OPTIONS;
memberResults: MemberOption[] = [];
selectedMemberId: number | null = null;
@@ -152,7 +153,7 @@ export class OfferingSessionPageComponent implements OnInit {
const line: OfferingBufferLine = {
...this.entry,
memberName: this.entry.isAnonymous ? null : this.selectedMemberName,
categoryName: cat?.name_en ?? '',
categoryName: cat?.label ?? '',
};
if (this.editingIndex !== null) { this.buffer[this.editingIndex] = line; this.editingIndex = null; }
else { this.buffer = [...this.buffer, line]; }