@global66/card-texts
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

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,
    })

Readme

Keywords

none

Package Sidebar

Install

npm i @global66/card-texts

Weekly Downloads

43

Version

1.0.8

License

MIT

Unpacked Size

17.3 kB

Total Files

25

Last publish

Collaborators

  • gersoncarrascol
  • thedavos
  • jsifuentes
  • omarmfs98
  • comiguel
  • g66
  • ppico22