Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 847 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 847 Bytes

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)