1.0.5 • Published 9 months ago

@global66/card-texts v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Global66 - Card Texts

This is a repository for maintaining the texts used in Card modules. Text content changes according to the country.

Actually countries supported are:

- PE (Peru)
- CL (Chile)
- CO (Colombia)
- AR (Argentina)

Installation

yarn add @global66/card-texts

or

npm install @global66/card-texts

Usage

Type Card texts

Options: Prepago or Débito

    import {transformTypeCardText} from '@global66/card-texts'

    const text = transformTypeCardText({
      alphaCode: 'PE' | 'CL' | 'CO',
      startUpperCase: true | false,
    })

PinPass Card texts

Options:

- PinPass (Chile)
- Clave de Tarjeta (Peru)
- Clave de Tarjeta (Colombia)

and variants

    import {transformPinpassText} from '@global66/card-texts'

    const text = transformPinpassText({
      alphaCode: 'PE' | 'CL' | 'CO',
      type: 'article' | 'enterAgain' | 'general' | 'newCode' | 'startUpperCase',
    })

Lock Card texts

Options:

- Bloquear | Desbloquear Tarjeta (Chile)
- Bloquear | Desbloquear Tarjeta (Peru)
- Congelar | Descongelar Tarjeta (Colombia)

and variants

    import {transformLockText} from '@global66/card-texts'

    const text = transformLockText({
      alphaCode: 'PE' | 'CL' | 'CO',
      type: 'positive' | 'negative' | 'positiveLoading' | 'negativeLoading' | 'positiveSuccess' | 'negativeSuccess' | 'positiveAction' | 'negativeAction',
      startUpperCase: true | false,
    })

Delete Card texts

Options

- Eliminar Tarjeta (Chile)
- Eliminar Tarjeta (Peru)
- Cancelar Tarjeta (Colombia)

and variants

    import {transformDeleteText} from '@global66/card-texts'

    const text = transformDeleteText({
      alphaCode: 'PE' | 'CL' | 'CO',
      type: 'general' | 'processing' | 'future' | 'loading' | 'success' | 'actionButtonLabel',
      startUpperCase: true | false,
    })
1.0.5

9 months ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.0

2 years ago