Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js: fixup gettext in django 3.1 #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xrmx
Copy link

@xrmx xrmx commented Feb 24, 2021

For some reason in Django 3.1 django.gettext is not available anymore in the scope,
it's available as window.gettext though. Update translate.js to work
with both locations.

This was already reported here:
geex-arts#149

Fix #25

Haven't rebuilt the bundle because I have node 12 which requires upgrading at least gulp 4 and it didn't work out of the box.

For some reason in Django 3.1 django.gettext is not available anymore in the scope,
it's available as window.gettext though. Update translate.js to work
with both locations.

This was already reported here:
geex-arts#149

Fix tikservices#25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compatibility with Django 3.1
1 participant