import type { DuffelCardFormStrings } from '../../index'; /** * Strings used in the DuffelCardForm component. * * If you update this object, make sure to update the * default values in `src/DuffelCardForm/types.ts` to match, * so we can keep the default values well documented. */ export const DEFAULT_STRINGS: DuffelCardFormStrings = { // Labels cardNumberLabel: 'Card number', expirationDateLabel: 'Expiration date', cvvLabel: 'Security code (CVC)', nameLabel: 'Name on card', countryLabel: 'Country', addressLine1Label: 'Address line 1', addressLine2Label: 'Address line 2', cityLabel: 'City', zipCodeLabel: 'ZIP code', postalCodeLabel: 'Postal code', postcodeLabel: 'Postcode', regionLabel: 'Region', // Placeholders cardNumberPlaceholder: '', expirationDatePlaceholder: 'MM/YY', cvvPlaceholder: 'CVV', namePlaceholder: '', addressLine1Placeholder: '', addressLine2Placeholder: '', cityPlaceholder: '', zipCodePlaceholder: '', postalCodePlaceholder: '', postcodePlaceholder: '', regionPlaceholder: '', // Section title billingAddressSectionTitle: 'Billing address', // Validation messages cardNumberRequired: 'Card number is required', cardNumberDigitsInvalidMessage: 'Card number must be between 15 and 16 digits', expiryDateRequiredMessage: 'A valid expiry date is required', expiryDateInThePastMessage: 'The expiry date must be in the future', cardholderNameRequired: 'Full name is required', addressRequiredMessage: 'Address is required', cityRequiredMessage: 'City is required', regionRequiredMessage: 'Region is required', postalCodeRequiredMessage: 'Postal code is required', zipInvalidMessage: 'ZIP Code must be 5 digits', postalCodeInvalidMessage: 'Postal code is invalid', postcodeInvalidMessage: 'Postcode is invalid', countryRequiredMessage: 'Country is required', cvvRequiredMessage: 'CVC is required', cvvOnlyNumberMessage: 'CVC must only contain numbers', cvvMinLengthMessage: 'CVC must be at least 3 digits', cvvMaxLengthMessage: 'CVC must be no longer than 4 digits', };