@impv/zxcvbn-ts-language-ja
This is a Japanese language pack for zxcvbn-ts. Currently, this package provides feedbacks translation only.
Installation
npm i @impv/zxcvbn-ts-language-ja
yarn add @impv/zxcvbn-ts-language-ja
pnpm i @impv/zxcvbn-ts-language-ja
Usage
As this package provide neither dictionaries nor keyboard patterns, we recommend you to use common ones and/or English ones.
import { zxcvbn, ZxcvbnOptions } from "@zxcvbn-ts/core";
import zxcvbnCommonPackage from "@zxcvbn-ts/language-common";
import zxcvbnEnPackage from "@zxcvbn-ts/language-en";
import * as zxcvbnJaPackage from "@impv/zxcvbn-ts-language-ja";
const password = "somePassword";
const options = {
translations: zxcvbnJaPackage.translations,
dictionary: {
...zxcvbnCommonPackage.dictionary,
...zxcvbnEnPackage.dictionary,
},
graphs: zxcvbnCommonPackage.adjacencyGraphs,
};
ZxcvbnOptions.setOptions(options);
zxcvbn(password);