You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FR] Separate UI language from regional formatting locale #12853
Please verify that this feature request has NOT been suggested before.
I checked and didn't find a similar feature request
Problem statement
We want to use InvenTree entirely in English, while using Dutch regional formatting (en-NL).
Currently UI language and regional locale are partly coupled. Some formatting uses the browser locale, while other components, such as the calendar, use the selected InvenTree language (en) as the locale. This can result in inconsistent date, number, currency and calendar formatting.
UI language and regional formatting are separate preferences. An English UI should not imply US or generic English regional formatting.
Suggested solution
Separate display language from regional / formatting locale in the user settings.
For example:
Language: English (en)
Regional locale: English - Netherlands (en-NL)
The language should only determine the translation catalogue. The regional locale should consistently control Intl.NumberFormat, Intl.DateTimeFormat, currency, calendars and other locale-sensitive formatting.
An "Automatic / browser default" option could be provided as fallback. Regional variants such as en-NL should reuse the normal en translations.
Describe alternatives you've considered
Adding en-NL as another UI language would solve this specific case, but incorrectly mixes translation language with regional formatting.
Relying only on the browser locale also does not work because some InvenTree components explicitly use the selected InvenTree language as their formatting locale.
Selecting Dutch provides Dutch formatting but also makes the UI (Partialy)Dutch, which is not desired.
Examples of other systems
Windows separates display language from regional format. The web platform also supports this distinction through BCP 47 locales and the JavaScript Intl APIs, e.g. en-NL.
There are a few places in front- and backend where we use the language for formatting but this should be reasonably straightforward to implement.
Language selection is a multi-stage process currently with user- and system settings. Would this be required for formatting too? Currencies are set on a system level.
Yes, I think the formatting locale should follow the same general model: a system-wide default with an optional per-user override.
I would keep three concepts separate:
UI language: controls translations only.
Regional locale: controls date, time, number, calendar and currency formatting.
Currency: remains a system-level setting, as it is now.
So for example, the system could use en-NL as its default regional locale, while an individual user could override that with de-DE or leave it on the system default. The selected currency could still be EUR in both cases; only its presentation would change according to the regional locale.
An Automatic / browser default option could also be useful as an optional user-level choice, but the important part for me is that the formatting locale is independent from the translation language.
My understanding is that the UI language should control translations only, while a separate regional locale should control date, time, number, and calendar formatting. The locale should support a system-wide default and an optional per-user override, while currency remains a system-level setting, as discussed above.
I'm currently working on another PR in InvenTree (#12072), but I'd also like to contribute to this issue if the maintainers are comfortable with me taking on another one.
Could you please assign this issue to me, or let me know if there's any specific scope you'd like me to follow? I'll first review the existing language and locale handling, then work on an implementation with appropriate tests and submit a PR for review.
I'd appreciate any guidance or feedback from the maintainers along the way. Thanks!
Sure, give it a try. The setting needs to be respected in backend (reports, labels, extension of api to reflect it to users, added in userprofile and settings) and frontend. Take a looker how user profiles and languages work.
Activity
matmair commentedon Sep 14, 2026
There are a few places in front- and backend where we use the language for formatting but this should be reasonably straightforward to implement.
Language selection is a multi-stage process currently with user- and system settings. Would this be required for formatting too? Currencies are set on a system level.
MIOsystems commentedon Sep 23, 2026
Yes, I think the formatting locale should follow the same general model: a system-wide default with an optional per-user override.
I would keep three concepts separate:
UI language: controls translations only.
Regional locale: controls date, time, number, calendar and currency formatting.
Currency: remains a system-level setting, as it is now.
So for example, the system could use en-NL as its default regional locale, while an individual user could override that with de-DE or leave it on the system default. The selected currency could still be EUR in both cases; only its presentation would change according to the regional locale.
An Automatic / browser default option could also be useful as an optional user-level choice, but the important part for me is that the formatting locale is independent from the translation language.
adityakrmishra commentedon Oct 18, 2026
Hi, I'd like to work on this issue.
My understanding is that the UI language should control translations only, while a separate regional locale should control date, time, number, and calendar formatting. The locale should support a system-wide default and an optional per-user override, while currency remains a system-level setting, as discussed above.
I'm currently working on another PR in InvenTree (#12072), but I'd also like to contribute to this issue if the maintainers are comfortable with me taking on another one.
Could you please assign this issue to me, or let me know if there's any specific scope you'd like me to follow? I'll first review the existing language and locale handling, then work on an implementation with appropriate tests and submit a PR for review.
I'd appreciate any guidance or feedback from the maintainers along the way. Thanks!
matmair commentedon Oct 20, 2026
Sure, give it a try. The setting needs to be respected in backend (reports, labels, extension of api to reflect it to users, added in userprofile and settings) and frontend. Take a looker how user profiles and languages work.