This pull request fixes premature evaluation of i18n strings inside static fields. gettext call, that causes
the evaluation to be performed at boot time, was replaced with gettext_lazy that is performed at
request time. This fixes admin actions and validation error not being translated when language is changed.
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Description
This pull request fixes premature evaluation of i18n strings inside static fields. gettext call, that causes the evaluation to be performed at boot time, was replaced with gettext_lazy that is performed at request time. This fixes admin actions and validation error not being translated when language is changed.
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Frontend
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: