ryan-haskell / date-format

A reliable way to format dates and times in Elm.
https://package.elm-lang.org/packages/ryan-haskell/date-format/latest
BSD 3-Clause "New" or "Revised" License
51 stars 27 forks source link

French suffix of days #30

Open Pafzedog opened 4 years ago

Pafzedog commented 4 years ago

Hello,

I think there is a mistake with dayOfMonthSuffix for french language. In french, only the first day of the month need the suffix "er", all the others are just left as it. It seems that you add "e" as suffix for all the other days.

toFrenchOrdinalSuffix : Int -> String
toFrenchOrdinalSuffix n =
    if n == 1 then
        "er"

    else
        "e"