Skip to content

Commit

Permalink
Merge pull request #426 from ttqureshi/ttqureshi/gettext-support
Browse files Browse the repository at this point in the history
Adds gettext() method support in xblock-sdk
  • Loading branch information
farhan authored Jan 27, 2025
2 parents 32157c6 + bac65da commit a6e14b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions workbench/templates/workbench/block.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="stylesheet" type="text/css"
href="{% static 'workbench/css/workbench.css' %}">
<script src="{% static 'workbench/js/runtime/logger.js' %}"></script>
<script src="{% url 'javascript-catalog' %}"></script>
<script>
// TODO: This should be handled more modularly.
studentId = '{{student_id}}';
Expand Down
4 changes: 3 additions & 1 deletion workbench/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@


from django.conf import settings
from django.views.i18n import JavaScriptCatalog
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import re_path
from django.urls import re_path, path

from workbench import views

Expand Down Expand Up @@ -61,6 +62,7 @@
views.reset_state,
name='reset_state'
),
path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'),

re_path(r'^admin/', admin.site.urls),
]
Expand Down

0 comments on commit a6e14b7

Please sign in to comment.