This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Date.Extra.Config.Config_nb_no

This is the Norwegian config for formatting dates.

config : Config.Config

Config for nb-no.

module Date.Extra.Config.Config_nb_no exposing (config)

{-| This is the Norwegian config for formatting dates.
@docs config
-}

import Date
import Date.Extra.Config as Config
import Date.Extra.I18n.I_default as Default
import Date.Extra.I18n.I_nb_no as Norwegian


{-| Config for nb-no.
-}
config : Config.Config
config =
    { i18n =
        { dayShort = Norwegian.dayShort
        , dayName = Norwegian.dayName
        , monthShort = Norwegian.monthShort
        , monthName = Norwegian.monthName
        , dayOfMonthWithSuffix = Norwegian.dayOfMonthWithSuffix
        , twelveHourPeriod = Default.twelveHourPeriod
        }
    , format =
        { date =
            "%Y-%m-%d"

        -- YYYY-MM-DD (L equivalent in moment.js)
        , longDate =
            "%A %-d %B %Y"

        -- dddd D MMMM YYYY
        , time =
            "%H:%M"

        -- HH:mm
        , longTime =
            "%H:%M:%S"

        -- HH:mm:ss
        , dateTime =
            "%Y-%m-%d %H:%M"

        -- YYYY-MM-DD HH:mm
        , firstDayOfWeek = Date.Mon
        }
    }