Welsh language pack for zxcvbn-ts.
Install via NPM:
$ npm install --save @widerplan/zxcvbn-language-cy
- Follow zxcvbn-ts installation documentation
- Install this package also
- 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)