2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 10:35:40 +00:00

Remove {% jstrans %} tag (#6298)

* Revert {% jstrans %} for .js files

- file extension is enough

* Remove custom jstrans templatetag

* Replace jstrans calls for .html files

- Add "escape=True"

* Allow for custom "escape" argument

* Update custom trans tag

- Cannot pass kwargs in the same way
- Add the "escape" attribute

* Update js translations in html files
This commit is contained in:
Oliver
2024-01-21 22:47:47 +11:00
committed by GitHub
parent c5d0902379
commit 4b5fcd4e69
49 changed files with 1654 additions and 1664 deletions

View File

@ -50,7 +50,6 @@ def check_prohibited_tags(data):
'for',
'endfor',
'trans',
'jstrans',
'load',
'include',
'url',
@ -85,7 +84,7 @@ for filename in pathlib.Path(js_dynamic_dir).rglob('*.js'):
with open(filename, 'r') as js_file:
data = js_file.readlines()
invalid_tags = ['trans', 'jstrans']
invalid_tags = ['blocktrans', 'blocktranslate', 'trans', 'translate']
err_count = 0