Skip to content

Commit

Permalink
Hotfix for mail language (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-intuitem authored Dec 9, 2024
1 parent a0fbdda commit a56a1a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions backend/iam/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
)

import structlog
from django.utils import translation
import os

logger = structlog.get_logger(__name__)

Expand Down Expand Up @@ -285,6 +287,10 @@ def _create_user(
)

logger.info("user created sucessfully", user=user)
FORCE_LANGUAGE = os.environ.get("FORCE_LANGUAGE")
if FORCE_LANGUAGE:
translation.activate(FORCE_LANGUAGE)
print("FORCE_LANGUAGE:", FORCE_LANGUAGE)

if mailing:
try:
Expand Down
Binary file modified backend/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion backend/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ msgstr ""

#: iam/models.py:279
msgid "Welcome to Ciso Assistant!"
msgstr ""
msgstr "Bienvenue sur CISO Assistant !"

#: iam/models.py:326
msgid "last name"
Expand Down

0 comments on commit a56a1a6

Please sign in to comment.