Skip to content

The Welsh dictionary and language package for zxcvbn-ts

License

Notifications You must be signed in to change notification settings

kiddivouchers/zxcvbn-language-cy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zxcvbn-language-cy

Welsh language pack for zxcvbn-ts.

Installation

Install via NPM:

$ npm install --save @widerplan/zxcvbn-language-cy

Usage

  1. Follow zxcvbn-ts installation documentation
  2. Install this package also
  3. Import the dictionary and translations:
import { zxcvbn, zxcvbnOptions } from '@zxcvbn-ts/core'
import zxcvbnCommonPackage from '@zxcvbn-ts/language-common'
import zxcvbnCyPackage from '@widerplan/zxcvbn-language-cy'

const options = {
  translations: zxcvbnCyPackage.translations,
  graphs: zxcvbnCommonPackage.adjacencyGraphs,
  dictionary: {
    ...zxcvbnCommonPackage.dictionary,
    ...zxcvbnCyPackage.dictionary,
  },
}

zxcvbnOptions.setOptions(options)

zxcvbn(password)

About

The Welsh dictionary and language package for zxcvbn-ts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published