flask-extensions / Flask-SimpleLogin

Simple Login - Login Extension for Flask - maintainer @cuducos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Translation of internal messages

claytonaalves opened this issue · comments

Hey @rochacbruno, the function dispatch of the login_required decorator has a flash call with a english message that is hard to translate.

What do you think about making SimpleLogin's message dictionary a module global dictionary. That way, it would be easier to apply translations.

@claytonaalves good idea!

I implemented in e84d5d6

But not as a global, I kept messages inside the instance but added an instance method to get it outside.