Skip to content

Commit

Permalink
fix: translation only applied on app start
Browse files Browse the repository at this point in the history
* the problem was that with gettext the translations for facets
  have been only be calculated on boot time.

* using lazy_gettext instead fixes that, because it calculates
  the translation at the request level

Co-authored-by: Mirek Simek <[email protected]>
  • Loading branch information
mesemus and mesemus committed Oct 23, 2024
1 parent 24a96ab commit 0000460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_banners/services/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

"""Banners Service configuration."""

from invenio_i18n import gettext as _
from invenio_i18n import lazy_gettext as _
from invenio_records_resources.services import Link, RecordServiceConfig
from invenio_records_resources.services.records.links import pagination_links
from sqlalchemy import asc, desc
Expand Down

0 comments on commit 0000460

Please sign in to comment.