I’m trying to have a short live update when changing and develop a ui of an open source project i.e. Inventree which utilizes translations using the gettext()
method _()
that then requires you to compile the translation unit seperatelly with invoke dev.translate
which take a long time around 30 seconds to view every little change you want to make…
any idea on how to bypass this atleast temporary for development as I’m not currently interested in translations now?
If you’re not interested on compiling the translation to see them updated, then don’t call that method, that is probably calling python manage.py compilemessages
. Translations string that aren’t on the .mo
files (compiled translation files) won’t be translated, and will fallback to the original string.
Then why the ui never gets updated with new fields even when relaunching the application unless you dev.translate… how do you bypass this from my point?
There can be several causes, but without seeing any code no one will be able to tell a possible problem.
I don’t know what command is this: ‘dev.translate’ it’s probably a custom command that is written for your project, so without any details it will be hard to give any help.
GitHub - inventree/InvenTree: Open Source Inventory Management System That’s the project, Basically adding a new field in the tsx pages requires an invoke dev.translate
execution to get uodated.
That is a third-party project - I suggest you ask for assistance from them.
That’s going to be hard there, though the translation feature is django exclusive so I thought I might try here
No, that command is something they’ve created for their system as pointed out above.
They might be using Django, but what they’re doing with the translations isn’t part of Django - it’s specific to their project.
They also have a defined set of support channels - See InvenTree - Get Support
well it’s basically vite-django build using lingui