Closed jonasrla closed 4 years ago
sep
is a optional argument and it defaults to _
ref. So, it is not actually "missing".
u'pt-br'
should be u'pt_br'
or you can change your locale selector function to return a Locale
object:
@babel.localeselector
def get_locale():
return Locale.parse(u'pt-br', sep='-')
You probably have something smarter there, but that is the theory.
A missing
sep='-'
on this line raisedhttps://github.com/python-babel/flask-babel/blob/9045eaaacf8d101ada140aa0347a7042ab965c15/flask_babel/__init__.py#L261