Skip to content

Commit

Permalink
[kb] 🐛 Fix fr_FR locale #31
Browse files Browse the repository at this point in the history
  • Loading branch information
KyllianBeguin committed Jul 26, 2024
1 parent 1bc5340 commit 76a2c38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dashboards/Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ RUN apt-get update
RUN mkdir zds
WORKDIR zds

RUN apt-get install -y locales
RUN echo "fr_FR.UTF-8 UTF-8" | tee -a /etc/locale.gen && locale-gen fr_FR.UTF-8

COPY app/requirements.txt .
RUN pip install -r requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion dashboards/app/pages/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
)

# Définir les paramètres linguistiques FR pour l'affichage des nombres
locale.setlocale(locale.LC_NUMERIC, "fr_FR")
locale.setlocale(locale.LC_NUMERIC, "fr_FR.utf8")

# Fonction pour améliorer l'affichage des nombres (milliers, millions, milliards)
def french_format(x: int) -> str:
Expand Down

0 comments on commit 76a2c38

Please sign in to comment.