From adcb211572355727974a8292157109ca0d96cac2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 4 Apr 2021 22:48:36 +0200 Subject: [PATCH] set language in the used js scripts --- InvenTree/build/templates/build/index.html | 1 + InvenTree/order/templates/order/purchase_orders.html | 1 + InvenTree/order/templates/order/sales_orders.html | 1 + InvenTree/templates/base.html | 2 ++ 4 files changed, 5 insertions(+) diff --git a/InvenTree/build/templates/build/index.html b/InvenTree/build/templates/build/index.html index 75dc497b4b..f710928ee7 100644 --- a/InvenTree/build/templates/build/index.html +++ b/InvenTree/build/templates/build/index.html @@ -130,6 +130,7 @@ InvenTree | {% trans "Build Orders" %} initialView: 'dayGridMonth', nowIndicator: true, aspectRatio: 2.5, + locale: '{{request.LANGUAGE_CODE}}', datesSet: function() { loadOrderEvents(calendar); } diff --git a/InvenTree/order/templates/order/purchase_orders.html b/InvenTree/order/templates/order/purchase_orders.html index 6667cbd437..7256a1c499 100644 --- a/InvenTree/order/templates/order/purchase_orders.html +++ b/InvenTree/order/templates/order/purchase_orders.html @@ -116,6 +116,7 @@ InvenTree | {% trans "Purchase Orders" %} initialView: 'dayGridMonth', nowIndicator: true, aspectRatio: 2.5, + locale: '{{request.LANGUAGE_CODE}}', datesSet: function() { loadOrderEvents(calendar); } diff --git a/InvenTree/order/templates/order/sales_orders.html b/InvenTree/order/templates/order/sales_orders.html index 6d4be9fff6..bcaf6a019c 100644 --- a/InvenTree/order/templates/order/sales_orders.html +++ b/InvenTree/order/templates/order/sales_orders.html @@ -115,6 +115,7 @@ InvenTree | {% trans "Sales Orders" %} initialView: 'dayGridMonth', nowIndicator: true, aspectRatio: 2.5, + locale: '{{request.LANGUAGE_CODE}}', datesSet: function() { loadOrderEvents(calendar); }, diff --git a/InvenTree/templates/base.html b/InvenTree/templates/base.html index aa571ef19a..140971a8ce 100644 --- a/InvenTree/templates/base.html +++ b/InvenTree/templates/base.html @@ -134,6 +134,7 @@ InvenTree + @@ -180,6 +181,7 @@ $(document).ready(function () { }); {% endif %} + moment.locale('{{request.LANGUAGE_CODE}}'); });