zostera/django-bootstrap4

How to translate button text with django-bootstrap4 template tags

Draqun opened this issue · 1 comments

Hi. I want to ask how looks like translation of the buttons text? Can you show an example?

BTW. Great job with this package.
Best regards.
Draqun

Ok I found a solution: https://docs.djangoproject.com/en/3.0/topics/i18n/translation/#string-literals-passed-to-tags-and-filters

It can looks like this {% bootstrap_button _("Register") button_type="submit" button_class="btn-primary" %}

We can close it.