elboletaire / password-strength-meter

:key: A password strength meter for jQuery
https://elboletaire.github.io/password-strength-meter/
GNU General Public License v3.0
107 stars 45 forks source link

messages in steps are not replaced #42

Closed leandroruel closed 4 years ago

leandroruel commented 4 years ago

tried put my own messages but he keeps putting the english messages over it, but just for steps:

$("#password").password({
        enterPass: 'Digite sua senha',
        shortPass: 'A senha é muito curta',
        containsField: 'A senha contém seu nome de usuário',
        steps: {
            // Easily change the steps' expected score here
            13: 'Senha muito insegura',
            23: 'Fraco; tente combinar letras e números',
            67: 'Médio; tente usar caracteres especiais',
            94: 'Senha forte!',
        },
    });
elboletaire commented 4 years ago

Are you using the minified version?

leandroruel commented 4 years ago

i'm using it with Laravel Mix, who uses webpack under the hood, so... i think he minifies it all

elboletaire commented 4 years ago

@leandroruel IDK how does Laravel Mix, but it may be taking the defined main key in package.json, which points to the already minified version. If that's the case, this is already being tracked in #40

jhoover4 commented 4 years ago

Nice!

elboletaire commented 4 years ago

@leandroruel can you please confirm this issue is fixed? Don't forget to update your package, ofc :).

fabriceci commented 4 years ago

The issue is fixed, I had the same problem in the latest release, but it's ok in the master.