@global66/card-texts
v1.0.9
Published
This is a repository for maintaining the texts used in Card modules. Text content changes according to the country.
Downloads
97
Keywords
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)
- 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,
})