Skip to content
Snippets Groups Projects
Commit a1705215 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Fix locale loading for fullcalendar

parent 17d87128
Branches
Tags
1 merge request!137Improve scheduling
Pipeline #117796 passed
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<link href='{% static 'common/vendor/fullcalendar-scheduler/main.css' %}' rel='stylesheet'/> <link href='{% static 'common/vendor/fullcalendar-scheduler/main.css' %}' rel='stylesheet'/>
<script src='{% static 'common/vendor/fullcalendar-scheduler/main.js' %}'></script> <script src='{% static 'common/vendor/fullcalendar-scheduler/main.js' %}'></script>
{% with 'AKPlan/vendor/fullcalendar-scheduler/locales/'|add:LANGUAGE_CODE|add:'.js' as locale_file %} {% with 'common/vendor/fullcalendar-scheduler/locales/'|add:LANGUAGE_CODE|add:'.js' as locale_file %}
{% if LANGUAGE_CODE != "en" %} {% if LANGUAGE_CODE != "en" %}
{# Locale 'en' is included in main.js and does not exist separately #} {# Locale 'en' is included in main.js and does not exist separately #}
<script src="{% static locale_file %}"></script> <script src="{% static locale_file %}"></script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment