import type { LocaleConfig } from '../types';

export const hi: LocaleConfig = {
  locale: 'hi',
  name: 'Hindi',
  scripts: ['deva', 'latn'],
  countries: ['IN'],
  phoneContextKeywords: [
    'फोन',
    'मोबाइल',
    'नंबर',
    'phone',
    'mobile',
    'tel.',
    'tel',
  ],
  cvcContextKeywords: ['सुरक्षा कोड', 'cvc', 'cvv', 'cv2'],
  address: {
    forms: ['standard', 'po-box'],
    postcodeForm: 'continental',
    postcodeRegex: '\\d{6}',
    streetKeywordsStandard: [
      'Road',
      'Rd.',
      'Marg',
      'Marga',
      'Street',
      'St.',
      'Lane',
      'Nagar',
    ],
    streetKeywordsInverted: ['Road', 'Rd.', 'Marg', 'Street', 'St.', 'Lane'],
    houseNumberMarkers: ['No.', 'नं.', 'Number'],
    poBoxKeywords: ['P.O. Box', 'PO Box'],
    floorKeywords: ['Floor', 'Flat', 'Apartment', 'Apt.', 'Block', 'मंजिल'],
    countryNames: ['भारत', 'India', 'IN'],
    countryPostcodePrefixes: [],
    requireUppercase: true,
  },
  nationalIds: [
    {
      id: 'in-aadhaar',
      name: 'Indian Aadhaar',
      pattern: '\\b\\d{4}\\s?\\d{4}\\s?\\d{4}\\b',
      checksum: 'verhoeff',
      replacement: '[AADHAAR]',
    },
    {
      id: 'in-pan',
      name: 'Indian PAN',
      pattern: '\\b[A-Z]{5}\\d{4}[A-Z]\\b',
      replacement: '[PAN]',
    },
    {
      id: 'in-passport',
      name: 'Indian Passport',
      pattern: '\\b[A-Z]\\d{7}\\b',
      replacement: '[PASSPORT]',
    },
  ],
  dateOfBirth: {
    monthsLong: [
      'जनवरी',
      'फ़रवरी',
      'मार्च',
      'अप्रैल',
      'मई',
      'जून',
      'जुलाई',
      'अगस्त',
      'सितंबर',
      'अक्टूबर',
      'नवंबर',
      'दिसंबर',
    ],
    contextKeywords: ['जन्म तिथि', 'जन्मदिन', 'जन्म'],
  },
};
