Closed TheKruspe closed 2 years ago
Flask-Breadcrumbs already supports I18N. See example in https://github.com/inveniosoftware/invenio-accounts/blob/master/invenio_accounts/views/security.py
However, you probably need to use the lazy gettext: from flask_babel import lazy_gettext as _
If you want to translate your breadcrumbs, you might face the following issue:
will throw
Out Of Application Context
error.will leave you with a string like this:
[<function <lambda> at 0x7d8fe8ad0630>]
The only possible way I found wass using
dynamic_list_constructor
like this:but this way the
url
needs to be entered manually.