Django translation.override() not working

I literally copy-pasted this from the docs:

class CustomerAdmin(ExportActionMixin, admin.ModelAdmin):
     def mail(self, request, queryset): 
         with translation.override('nl'):
             print(_('Hello'))

still prints Hello instead of Hallo Docs state this should work regardless of what settings or middleware you've got enabled.

I tried nl, de, and dk, it's always English.

I'm on Django 3.6

Back to Top