Repository navigation
Description
Please verify that this bug has NOT been raised before.
- I checked and didn't find a similar issue
Describe the bug*
in Inventree config file /etc/inventree/config.yaml I've applied language setting:
# Select default system language (default is 'en-us')
# Use the environment variable INVENTREE_LANGUAGE
language: en-usHow ever once I launch Inventree it's set up language to Polish by default:

Even if I save the setting for my account to English it return back to Polish after some time.
Also language setting seems to not be stored in account setting as in new browser it display all in Polish as well.
Steps to Reproduce
- Use browser with primary language different than english
- Set up config.yaml
language: en-us - Open inventree app and check UI language displayed
Expected behaviour
- config.yaml should have higher priority than browser language settings
- If user decide to use different language the setting should be stored within account settings and all browsers and app (including mobile app ) should launch with the same language version
Deployment Method
- Docker
- Package
- Bare metal
- Other - added info in Steps to Reproduce
Version Information
Version Information:
InvenTree-Version: 0.15.4
Django Version: 4.2.12
Database: postgresql
Debug-Mode: False
Deployed using Docker: False
Platform: Linux-5.4.0-186-generic-x86_64-with-glibc2.31
Installer: None
Active plugins: [{'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.0.0'}, {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'}, {'name': 'InvenTreeCurrencyExchange', 'slug': 'inventreecurrencyexchange', 'version': '1.0.0'}, {'name': 'InvenTreeLabel', 'slug': 'inventreelabel', 'version': '1.0.0'}, {'name': 'InvenTreeLabelMachine', 'slug': 'inventreelabelmachine', 'version': '1.0.0'}, {'name': 'InvenTreeLabelSheet', 'slug': 'inventreelabelsheet', 'version': '1.0.0'}, {'name': 'DigiKeyPlugin', 'slug': 'digikeyplugin', 'version': '1.0.0'}, {'name': 'LCSCPlugin', 'slug': 'lcscplugin', 'version': '1.0.0'}, {'name': 'MouserPlugin', 'slug': 'mouserplugin', 'version': '1.0.0'}, {'name': 'TMEPlugin', 'slug': 'tmeplugin', 'version': '1.0.0'}, {'name': 'Zebra', 'slug': 'zebra', 'version': '0.6.0'}, {'name': 'KiCadLibraryPlugin', 'slug': 'kicad-library-plugin', 'version': '1.4.2'}]
Please verify if you can reproduce this bug on the demo site.
- I can reproduce this bug on the demo site.
Relevant log output
No response
Activity
SchrodingersGat commentedon Jun 29, 2024
If your browser is requesting the page in polish, this is what the server will return. The "default" language selection is intended as a back-stop after other language selection priorities are exhausted.
From the django documentation:
NightSkySK commentedon Jun 29, 2024
OK, I understand it's not a bug in this case. Can it be "feature-request" to store user preferred language in user settings? in this case login page would be still based on "language selection priorities" mentioned above, but once user successfully login it would switch to the preferred language/language which he was using during last session, etc.
SchrodingersGat commentedon Jul 3, 2024
@NightSkySK this is possible with the new user interface, but likely not with the current "legacy" interface.
github-actions commentedon Sep 2, 2024
This issue seems stale. Please react to show this is still important.
matmair commentedon Dec 31, 2024
@NightSkySK the next stable release only contains the new user interface - could you validate if this still occurs with the "master" branch?
matmair commentedon Feb 26, 2025
working on this