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

Adds gettext() method support in xblock-sdk #426

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading