File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ RUN apt-get update
8
8
RUN mkdir zds
9
9
WORKDIR zds
10
10
11
+ RUN apt-get install -y locales
12
+ RUN echo "fr_FR.UTF-8 UTF-8" | tee -a /etc/locale.gen && locale-gen fr_FR.UTF-8
13
+
11
14
COPY app/ ./
12
15
RUN pip install -r requirements.txt
13
16
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ RUN apt-get update
8
8
RUN mkdir zds
9
9
WORKDIR zds
10
10
11
+ RUN apt-get install -y locales
12
+ RUN echo "fr_FR.UTF-8 UTF-8" | tee -a /etc/locale.gen && locale-gen fr_FR.UTF-8
13
+
11
14
COPY app/requirements.txt .
12
15
RUN pip install -r requirements.txt
13
16
Original file line number Diff line number Diff line change 34
34
)
35
35
36
36
# Définir les paramètres linguistiques FR pour l'affichage des nombres
37
- locale .setlocale (locale .LC_NUMERIC , "fr_FR" )
37
+ locale .setlocale (locale .LC_NUMERIC , "fr_FR.utf8 " )
38
38
39
39
# Fonction pour améliorer l'affichage des nombres (milliers, millions, milliards)
40
40
def french_format (x : int ) -> str :
You can’t perform that action at this time.
0 commit comments