@impv/zxcvbn-ts-language-ja
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@impv/zxcvbn-ts-language-ja

This is a Japanese language pack for zxcvbn-ts. Currently, this package provides feedbacks translation only.

Installation

# NPM
npm i @impv/zxcvbn-ts-language-ja

# Yarn
yarn add @impv/zxcvbn-ts-language-ja

# pnpm
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";
// You can't default-import the package because we use Named Exports.
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);

Package Sidebar

Install

npm i @impv/zxcvbn-ts-language-ja

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

7.63 kB

Total Files

6

Last publish

Collaborators

  • pocka