Skip to content

[FR] Separate UI language from regional formatting locale #12853

Description

@MIOsystems

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.

Do you want to develop this?

  • I want to develop this.

Activity

  1. added
    enhancement
    triage:not-checked
    on Sep 14, 2026
  2. added
    User Interface
    and removed
    enhancement
    triage:not-checked
    on Sep 14, 2026
  3. matmair commented on Sep 14, 2026

    @matmair
    Member

    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.

  4. MIOsystems commented on Sep 23, 2026

    @MIOsystems
    Author

    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.

  5. adityakrmishra commented on Oct 18, 2026

    @adityakrmishra
    Contributor

    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!

  6. added this to the 1.7.0 milestone on Oct 20, 2026
  7. matmair commented on Oct 20, 2026

    @matmair
    Member

    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.

  8. modified the milestones: 1.7.0, 1.8.0 on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

User Interface

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions