card-texts
v3.0.0
Published
This is a repository for maintaining the texts used in Card modules. Text content changes according to the country.
Downloads
6
Readme
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)
Installation
yarn add @global66/card-texts
or
npm install @global66/card-texts
Usage
Type Card texts
Options: Prepago
or Dédbito
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',
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,
})