Closed sunknudsen closed 2 months ago
Hey thanks for the issue. I will look into it if i can get the base value into the output. In the meantime you could add your translations into zxcvbn-ts dependent on your setup. For example if you have a typescript file with all translations in it:
import { zxcvbn, zxcvbnOptions } from '@zxcvbn-ts/core'
import translations from './yourTranslations'
const password = 'somePassword'
const options = {
translations: translations.crackTimeDisplay,
}
zxcvbnOptions.setOptions(options)
zxcvbn(password)
Trying to translate
crackTimesDisplay
values using translations implemented using i18next and react-i18next to consolidate translations in one place rather than depending on language packages.Problem is
base
is not included in output so it appears one has to compute this ourselves.Perhaps I am missing something… this project is amazing btw!