Skip to main content
cngx-src documentation

DEFAULT_INPUT_ARIA_LABELS

Variableforms/input

projects/forms/input/input-config.ts

Description#

English default ARIA labels for @cngx/forms/input. Directives read a key as config.ariaLabels?.<key> ?? DEFAULT_INPUT_ARIA_LABELS.<key>.

Type#

InputAriaLabels

Default value#

{
  clear: 'Clear',
  otpGroup: 'One-time code',
  otpSlot: (index, length) => `Digit ${index + 1} of ${length}`,
  otpComplete: 'Code complete',
  copySuccess: 'Copied',
  copyError: 'Copy failed',
  fileDropZone: 'File drop zone',
  capsLockOn: 'Caps Lock is on',
  passwordStrength: (label) => `Password strength: ${label}`,
  inputRejected: 'Character not allowed',
  sensitiveReveal: 'Value revealed',
  sensitiveHide: 'Value hidden',
  ratingValue: (value, max) => `${value} of ${max}`,
  ratingItem: (step, max) => `${step} of ${max}`,
  phoneCountry: 'Country',
}