mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-07 07:48:50 +00:00
set language in the used js scripts
This commit is contained in:
parent
efd14fca64
commit
adcb211572
@ -130,6 +130,7 @@ InvenTree | {% trans "Build Orders" %}
|
|||||||
initialView: 'dayGridMonth',
|
initialView: 'dayGridMonth',
|
||||||
nowIndicator: true,
|
nowIndicator: true,
|
||||||
aspectRatio: 2.5,
|
aspectRatio: 2.5,
|
||||||
|
locale: '{{request.LANGUAGE_CODE}}',
|
||||||
datesSet: function() {
|
datesSet: function() {
|
||||||
loadOrderEvents(calendar);
|
loadOrderEvents(calendar);
|
||||||
}
|
}
|
||||||
|
@ -116,6 +116,7 @@ InvenTree | {% trans "Purchase Orders" %}
|
|||||||
initialView: 'dayGridMonth',
|
initialView: 'dayGridMonth',
|
||||||
nowIndicator: true,
|
nowIndicator: true,
|
||||||
aspectRatio: 2.5,
|
aspectRatio: 2.5,
|
||||||
|
locale: '{{request.LANGUAGE_CODE}}',
|
||||||
datesSet: function() {
|
datesSet: function() {
|
||||||
loadOrderEvents(calendar);
|
loadOrderEvents(calendar);
|
||||||
}
|
}
|
||||||
|
@ -115,6 +115,7 @@ InvenTree | {% trans "Sales Orders" %}
|
|||||||
initialView: 'dayGridMonth',
|
initialView: 'dayGridMonth',
|
||||||
nowIndicator: true,
|
nowIndicator: true,
|
||||||
aspectRatio: 2.5,
|
aspectRatio: 2.5,
|
||||||
|
locale: '{{request.LANGUAGE_CODE}}',
|
||||||
datesSet: function() {
|
datesSet: function() {
|
||||||
loadOrderEvents(calendar);
|
loadOrderEvents(calendar);
|
||||||
},
|
},
|
||||||
|
@ -134,6 +134,7 @@ InvenTree
|
|||||||
<script type='text/javascript' src='{% static "bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js" %}'></script>
|
<script type='text/javascript' src='{% static "bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js" %}'></script>
|
||||||
|
|
||||||
<script type="text/javascript" src="{% static 'fullcalendar/main.js' %}"></script>
|
<script type="text/javascript" src="{% static 'fullcalendar/main.js' %}"></script>
|
||||||
|
<script type="text/javascript" src="{% static 'fullcalendar/locales-all.js' %}"></script>
|
||||||
<script type="text/javascript" src="{% static 'script/select2/select2.js' %}"></script>
|
<script type="text/javascript" src="{% static 'script/select2/select2.js' %}"></script>
|
||||||
<script type='text/javascript' src="{% static 'script/moment.js' %}"></script>
|
<script type='text/javascript' src="{% static 'script/moment.js' %}"></script>
|
||||||
|
|
||||||
@ -180,6 +181,7 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
moment.locale('{{request.LANGUAGE_CODE}}');
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user