Skip to content

Notification locale translation #11408

Closed

Description

@Tr4um4z

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

I want to change the backend language to recive email notfication in italian.

i have set up lot of configs working in /etc/inventree/config.yaml but language: it-it do not work

# Select default system language , or use the environment variable INVENTREE_LANGUAGE language: it-it

set a env variable in /etc/inventree/conf.d/other , do not work

export INVENTREE_LANGUAGE="it-it"

any suggestion?
Thanks in Advance

Steps to Reproduce

Inventree in a LCX container under proxmox installed from https://community-scripts.github.io/ProxmoxVE/ script

Expected behaviour

change language to IT

Deployment Method

None

Version Information

latest

Try to reproduce on the demo site

I did not try to reproduce

Is the bug reproducible on the demo site?

Not reproducible

Relevant log output

Activity

  1. added
    bug
    question
    triage:not-checked
    on Feb 23, 2026
  2. SchrodingersGat commented on Feb 23, 2026

    @SchrodingersGat
    Member

    You have the correct config variable - INVENTREE_LANGUAGE.

    You can confirm that it is set correctly by going to /api/ and you should see:

    Image

    So, that part is at least correct. Perhaps there are some other issues going on with the email notifications? Any email messages in particular you are looking at?

  3. added and removed
    triage:not-checked
    on Feb 23, 2026
  4. Tr4um4z commented on Feb 23, 2026

    @Tr4um4z
    Author

    Image

    it's seems correct , i have all email (new user , change password , low stock notification) and web notification in english, web frontend in italian from user setting.

    it's the backend that is not in italian

    Image

  5. Tr4um4z commented on Feb 23, 2026

    @Tr4um4z
    Author

    You have the correct config variable - INVENTREE_LANGUAGE.

    You can confirm that it is set correctly by going to /api/ and you should see:

    Image So, that part is at least correct. Perhaps there are some other issues going on with the email notifications? Any email messages in particular you are looking at?

    i see the modify that you have made but it's only for the fronted translation? i have the problem with the backend because in the frontend the language user setting option works

  6. SchrodingersGat commented on Feb 24, 2026

    @SchrodingersGat
    Member

    The frontend translations issues are separate, I think this is related only to notifications.

    The issue is that the notifications are created once, and likely not being translated appropriately as per the configured language setting.

  7. added this to the 2.0.0 milestone on Feb 24, 2026
  8. matmair commented on Mar 29, 2026

    @matmair
    Member

    @SchrodingersGat wasnt this addressed already in in #11412

  9. SchrodingersGat commented on Mar 29, 2026

    @SchrodingersGat
    Member

    #11412 only fixes the frontend locale setting, the issue here is that notification messages are not correctly translated to the users custom locale as they are "baked in" when being created

  10. matmair commented on Mar 30, 2026

    @matmair
    Member

    Can we maybe change the title / create a new issue that is clearer on what the problem is? I found this one confusing on triage with this half solved state

  11. changed the title [-]Can't change default language[/-] [+]Notification locale translation[/+] on Mar 30, 2026
  12. added
    help wanted
    on Aug 24, 2026
  13. sahilmathur254 commented on Aug 29, 2026

    @sahilmathur254

    I'd like to work on this. My proposed first milestone is a focused fix in the shared backend notification pipeline so newly created notifications render under each recipient's locale, with system-language fallback and regression coverage for Italian and English recipients. I would leave historical persisted notifications and broad translation-catalogue cleanup out of scope.
    Before implementation, could you confirm the intended precedence between the user's locale and INVENTREE_LANGUAGE, and whether both web and email output must be covered in the first PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedquestiontranslation

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions