2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

[React] UI Translation Updates (#6257)

* Move locales definition into separate file

- Cleanup settings.py a bit

* Update docstring

* Expose 'default_locale' to info API endpoint

* Validate settings.LANGUAGE_CODE

* Fix bug in BuildDetail page

* Use selected language when making API queries

* Translate more strings

* Tweak variable name

* Update locale config

* Remove duplicate code

* Remove compiled messages.ts translation files

* Fixes for LanguageContext.tsx

* Update messages.d.ts for sr locale

* Ensure compiled files are served by django runserver

* Amend changes to STATICFILES_DIRS

* Cleanup prerender.py

* Refetch status codes when locale is changed

* Fix log msg

* Clear out old static files
This commit is contained in:
Oliver
2024-01-17 16:29:06 +11:00
committed by GitHub
parent 386aa5952c
commit 7d36049ac9
43 changed files with 129 additions and 91 deletions

View File

@ -298,7 +298,7 @@ def static(c, frontend=False):
manage(c, 'prerender')
if frontend and node_available():
frontend_build(c)
manage(c, 'collectstatic --no-input')
manage(c, 'collectstatic --no-input --clear')
@task