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 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
2 people authored and zzacharo committed Nov 8, 2024
1 parent 4a0d858 commit 20fbd9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_records_resources/services/records/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

"""Record Service API."""

from invenio_i18n import gettext as _
from invenio_i18n import lazy_gettext as _
from invenio_indexer.api import RecordIndexer
from invenio_records_permissions.policies.records import RecordPermissionPolicy
from invenio_search import RecordsSearchV2
Expand Down

0 comments on commit 20fbd9f

Please sign in to comment.