diff --git a/InvenTree/templates/js/translated/helpers.js b/InvenTree/templates/js/translated/helpers.js
index 446df773fe..a66a634ece 100644
--- a/InvenTree/templates/js/translated/helpers.js
+++ b/InvenTree/templates/js/translated/helpers.js
@@ -1,3 +1,14 @@
+{% load i18n %}
+
+function yesNoLabel(value) {
+ if (value) {
+ return `{% trans "YES" %}`;
+ } else {
+ return `{% trans "NO" %}`;
+ }
+}
+
+
/*
* A set of simple helper functions
*/
diff --git a/InvenTree/templates/js/translated/part.js b/InvenTree/templates/js/translated/part.js
index 052a33ec5c..98a9be5358 100644
--- a/InvenTree/templates/js/translated/part.js
+++ b/InvenTree/templates/js/translated/part.js
@@ -5,15 +5,6 @@
* Requires api.js to be loaded first
*/
-function yesNoLabel(value) {
- if (value) {
- return `{% trans "YES" %}`;
- } else {
- return `{% trans "NO" %}`;
- }
-}
-
-
function partGroups(options={}) {
return {
diff --git a/InvenTree/templates/js/translated/table_filters.js b/InvenTree/templates/js/translated/table_filters.js
index 423c3c989f..9e173a7b37 100644
--- a/InvenTree/templates/js/translated/table_filters.js
+++ b/InvenTree/templates/js/translated/table_filters.js
@@ -2,8 +2,6 @@
{% load status_codes %}
{% load inventree_extras %}
-import { global_settings } from '{% url "settings.js" %}';
-
{% include "status_codes.html" with label='stock' options=StockStatus.list %}
{% include "status_codes.html" with label='stockHistory' options=StockHistoryCode.list %}
{% include "status_codes.html" with label='build' options=BuildStatus.list %}
diff --git a/InvenTree/templates/js/translated/tables.js b/InvenTree/templates/js/translated/tables.js
index a1249d0176..c3f938f9c8 100644
--- a/InvenTree/templates/js/translated/tables.js
+++ b/InvenTree/templates/js/translated/tables.js
@@ -1,7 +1,5 @@
{% load i18n %}
-import { inventreeLoad, inventreeSave } from '{% url "inventree.js" %}';
-
function reloadtable(table) {
$(table).bootstrapTable('refresh');
diff --git a/InvenTree/templates/status_codes.html b/InvenTree/templates/status_codes.html
index cfca5ea77b..453a7914e2 100644
--- a/InvenTree/templates/status_codes.html
+++ b/InvenTree/templates/status_codes.html
@@ -1,7 +1,7 @@
/*
* Status codes for the {{ label }} model.
*/
-export const {{ label }}Codes = {
+const {{ label }}Codes = {
{% for opt in options %}'{{ opt.key }}': {
key: '{{ opt.key }}',
value: '{{ opt.value }}',{% if opt.color %}
@@ -15,7 +15,7 @@ export const {{ label }}Codes = {
* Uses the values specified in "status_codes.py"
* This function is generated by the "status_codes.html" template
*/
-export function {{ label }}StatusDisplay(key, options={}) {
+function {{ label }}StatusDisplay(key, options={}) {
key = String(key);