Updated Swiss number formatting in fr_CH locale

This commit is contained in:
Ahmed Nassar 2025-05-05 16:30:12 +03:00
parent 4d96649a33
commit f2936b2e12

View file

@ -27,6 +27,12 @@ DATETIME_INPUT_FORMATS = [
"%d/%m/%Y %H:%M:%S.%f", # '25/10/2006 14:30:59.000200'
"%d/%m/%Y %H:%M", # '25/10/2006 14:30'
]
DECIMAL_SEPARATOR = ","
THOUSAND_SEPARATOR = "\xa0" # non-breaking space
# Swiss number formatting can vary based on context (e.g. Fr. 23.50 vs 22,5 m).
# As Django does not support context-specific formatting, these settings follow
# common IT practices used in Swiss operating systems and applications.
# For official government guidelines, see:
# https://www.bk.admin.ch/bk/de/home/dokumentation/sprachen/hilfsmittel-textredaktion/schreibweisungen.html
DECIMAL_SEPARATOR = "."
THOUSAND_SEPARATOR = "'" # single quote
NUMBER_GROUPING = 3