Skip to content

Commit c81e158

Browse files
fix: Provide frontend plugin change forms with plugin language (#295)
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 91bd664 commit c81e158

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

djangocms_frontend/templates/djangocms_frontend/admin/base-collapse.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
{% block extrahead %}
55
<link rel="stylesheet" href="{% static 'djangocms_frontend/css/base.css' %}"/>
6+
{% with get_plugin_language=request.GET.plugin_language %}
7+
<meta name="plugin_language" data-plugin-language="{{ plugin.language|default:get_plugin_language }}">
8+
{% endwith %}
69
{{ block.super }}
710
{% endblock %}
811

djangocms_frontend/templates/djangocms_frontend/admin/base-tabs.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
{% block extrahead %}
44
<link rel="stylesheet" href="{% static 'djangocms_frontend/css/base.css' %}"/>
55
<script src="{% static 'djangocms_frontend/js/bundle.base.js' %}"></script>
6+
{% with get_plugin_language=request.GET.plugin_language %}
7+
<meta name="plugin_language" data-plugin-language="{{ plugin.language|default:get_plugin_language }}">
8+
{% endwith %}
69
{{ block.super }}
710
{% endblock %}
811
{% block content_subtitle %}{% endblock %}

0 commit comments

Comments
 (0)