Skip to content

Commit

Permalink
style(elm-format): ran through files update using elm-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
rluiten committed Jun 22, 2017
1 parent 94f3c9c commit 7a812d6
Show file tree
Hide file tree
Showing 18 changed files with 87 additions and 215 deletions.
20 changes: 5 additions & 15 deletions src/Date/Extra/Config/Config_de_de.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,11 @@ config =
, twelveHourPeriod = Default.twelveHourPeriod
}
, format =
{ date =
"%-d. %B %Y"
-- d. M YYYY. a
, longDate =
"%A, %-d. %B %Y"
-- dddd, dd. MMMM yyyy
, time =
"%-H:%M"
-- h:mm
, longTime =
"%-H:%M:%S"
-- h:mm:ss
, dateTime =
"%a, %-d. %b %Y. %-H:%M:%S"
-- date + time
{ date = "%-d. %B %Y" -- d. M YYYY. a
, longDate = "%A, %-d. %B %Y" -- dddd, dd. MMMM yyyy
, time = "%-H:%M" -- h:mm
, longTime = "%-H:%M:%S" -- h:mm:ss
, dateTime = "%a, %-d. %b %Y. %-H:%M:%S" -- date + time
, firstDayOfWeek = Date.Mon
}
}
32 changes: 12 additions & 20 deletions src/Date/Extra/Config/Config_el_gr.elm
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,18 @@ config =
}
, format =
-- TODO: Verify those types:
{ date =
"%-d/%-m/%y"
-- d/M/yy
, longDate =
"%A, %-d %B %Y"
-- EEEE, d MMMM yyyy
-- ex. "Παρασκευή, 9 Ιουνίου 2017"
-- TODO:
-- Τhe month suffix is correct in this case, but could be wrong
-- in other contexts. When rendering the month on its own
-- (e.g. "%B") then it should be "Ιούνιος" rather than "Ιουνίου"
, time =
"%-I:%M %P"
-- h:mm tt
, longTime =
"%-I:%M:%S %P"
-- h:mm:ss a
, dateTime =
"-d/%m/%Y %-I:%M %P"
-- date + time
{ date = "%-d/%-m/%y" -- d/M/yy
, longDate = "%A, %-d %B %Y"

-- EEEE, d MMMM yyyy
-- ex. "Παρασκευή, 9 Ιουνίου 2017"
-- TODO:
-- Τhe month suffix is correct in this case, but could be wrong
-- in other contexts. When rendering the month on its own
-- (e.g. "%B") then it should be "Ιούνιος" rather than "Ιουνίου"
, time = "%-I:%M %P" -- h:mm tt
, longTime = "%-I:%M:%S %P" -- h:mm:ss a
, dateTime = "-d/%m/%Y %-I:%M %P" -- date + time
, firstDayOfWeek = Date.Sun
}
}
20 changes: 5 additions & 15 deletions src/Date/Extra/Config/Config_en_au.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,11 @@ config =
, twelveHourPeriod = Default.twelveHourPeriod
}
, format =
{ date =
"%-d/%m/%Y"
-- d/MM/yyyy
, longDate =
"%A, %-d %B %Y"
-- dddd, d MMMM yyyy
, time =
"%-I:%M %p"
-- h:mm tt
, longTime =
"%-I:%M:%S %p"
-- h:mm:ss tt
, dateTime =
"%-d/%m/%Y %-I:%M %p"
-- date + time
{ date = "%-d/%m/%Y" -- d/MM/yyyy
, longDate = "%A, %-d %B %Y" -- dddd, d MMMM yyyy
, time = "%-I:%M %p" -- h:mm tt
, longTime = "%-I:%M:%S %p" -- h:mm:ss tt
, dateTime = "%-d/%m/%Y %-I:%M %p" -- date + time
, firstDayOfWeek = Date.Mon
}
}
20 changes: 5 additions & 15 deletions src/Date/Extra/Config/Config_en_gb.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,11 @@ config =
, twelveHourPeriod = Default.twelveHourPeriod
}
, format =
{ date =
"%-d/%m/%Y"
-- d/MM/yyyy
, longDate =
"%A, %-d %B %Y"
-- dddd, d MMMM yyyy
, time =
"%-I:%M %p"
-- h:mm tt
, longTime =
"%-I:%M:%S %p"
-- h:mm:ss tt
, dateTime =
"%-d/%m/%Y %-I:%M %p"
-- date + time
{ date = "%-d/%m/%Y" -- d/MM/yyyy
, longDate = "%A, %-d %B %Y" -- dddd, d MMMM yyyy
, time = "%-I:%M %p" -- h:mm tt
, longTime = "%-I:%M:%S %p" -- h:mm:ss tt
, dateTime = "%-d/%m/%Y %-I:%M %p" -- date + time
, firstDayOfWeek = Date.Mon
}
}
20 changes: 5 additions & 15 deletions src/Date/Extra/Config/Config_en_us.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,11 @@ config =
, twelveHourPeriod = Default.twelveHourPeriod
}
, format =
{ date =
"%-m/%-d/%Y"
-- M/d/YYY
, longDate =
"%A, %B %d, %Y"
-- dddd, MMMM dd, yyyy
, time =
"%-H:%M %p"
-- h:mm tt
, longTime =
"%-H:%M:%S %p"
-- h:mm:ss tt
, dateTime =
"%-m/%-d/%Y %-I:%M %p"
-- date + time
{ date = "%-m/%-d/%Y" -- M/d/YYY
, longDate = "%A, %B %d, %Y" -- dddd, MMMM dd, yyyy
, time = "%-H:%M %p" -- h:mm tt
, longTime = "%-H:%M:%S %p" -- h:mm:ss tt
, dateTime = "%-m/%-d/%Y %-I:%M %p" -- date + time
, firstDayOfWeek = Date.Sun
}
}
20 changes: 5 additions & 15 deletions src/Date/Extra/Config/Config_et_ee.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,11 @@ config =
, twelveHourPeriod = Default.twelveHourPeriod
}
, format =
{ date =
"%-d. %b %Y. a"
-- d. M YYYY. a
, longDate =
"%A, %-d. %B %Y"
-- dddd, dd. MMMM yyyy
, time =
"%-H:%M"
-- h:mm
, longTime =
"%-H:%M:%S"
-- h:mm:ss
, dateTime =
"%a, %-d. %b %Y. %-H:%M:%S"
-- date + time
{ date = "%-d. %b %Y. a" -- d. M YYYY. a
, longDate = "%A, %-d. %B %Y" -- dddd, dd. MMMM yyyy
, time = "%-H:%M" -- h:mm
, longTime = "%-H:%M:%S" -- h:mm:ss
, dateTime = "%a, %-d. %b %Y. %-H:%M:%S" -- date + time
, firstDayOfWeek = Date.Mon
}
}
20 changes: 5 additions & 15 deletions src/Date/Extra/Config/Config_fi_fi.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,11 @@ config =
, twelveHourPeriod = Default.twelveHourPeriod
}
, format =
{ date =
"%-d.%-m.%Y"
-- d.m.YYYY
, longDate =
"%A, %-d %B %Y"
-- dddd, d MMMM yyyy
, time =
"%-H:%M"
-- h:mm
, longTime =
"%-H:%M:%S"
-- h:mm:ss
, dateTime =
"%-d.%-m.%Y %-H:%M"
-- date + time
{ date = "%-d.%-m.%Y" -- d.m.YYYY
, longDate = "%A, %-d %B %Y" -- dddd, d MMMM yyyy
, time = "%-H:%M" -- h:mm
, longTime = "%-H:%M:%S" -- h:mm:ss
, dateTime = "%-d.%-m.%Y %-H:%M" -- date + time
, firstDayOfWeek = Date.Mon
}
}
20 changes: 5 additions & 15 deletions src/Date/Extra/Config/Config_fr_fr.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,11 @@ config =
, twelveHourPeriod = Default.twelveHourPeriod
}
, format =
{ date =
"%-d/%m/%Y"
-- d/MM/yyyy
, longDate =
"%A, %-d %B %Y"
-- dddd, d MMMM yyyy
, time =
"%-I:%M %p"
-- h:mm tt
, longTime =
"%-I:%M:%S %p"
-- h:mm:ss tt
, dateTime =
"%-d/%m/%Y %-I:%M %p"
-- date + time
{ date = "%-d/%m/%Y" -- d/MM/yyyy
, longDate = "%A, %-d %B %Y" -- dddd, d MMMM yyyy
, time = "%-I:%M %p" -- h:mm tt
, longTime = "%-I:%M:%S %p" -- h:mm:ss tt
, dateTime = "%-d/%m/%Y %-I:%M %p" -- date + time
, firstDayOfWeek = Date.Mon
}
}
15 changes: 5 additions & 10 deletions src/Date/Extra/Config/Config_lt_lt.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,11 @@ config =
, twelveHourPeriod = Default.twelveHourPeriod
}
, format =
{ date =
"%Y-%m-%d"
, longDate =
"%A, %Y, %B %-d"
, time =
"%H:%M"
, longTime =
"%H:%M:%S"
, dateTime =
"%a, %-d. %b %Y. %-H:%M"
{ date = "%Y-%m-%d"
, longDate = "%A, %Y, %B %-d"
, time = "%H:%M"
, longTime = "%H:%M:%S"
, dateTime = "%a, %-d. %b %Y. %-H:%M"
, firstDayOfWeek = Date.Mon
}
}
20 changes: 5 additions & 15 deletions src/Date/Extra/Config/Config_nl_nl.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,11 @@ config =
, twelveHourPeriod = Default.twelveHourPeriod
}
, format =
{ date =
"%d-%m-%Y"
-- dd-mm-yyy
, longDate =
"%A, %B %d, %Y"
-- dddd, MMMM dd, yyyy
, time =
"%H:%M"
-- hh:mm
, longTime =
"%-H:%M:%S %p"
-- h:mm:ss tt
, dateTime =
"%d-%m-%Y %H:%M"
-- date time
{ date = "%d-%m-%Y" -- dd-mm-yyy
, longDate = "%A, %B %d, %Y" -- dddd, MMMM dd, yyyy
, time = "%H:%M" -- hh:mm
, longTime = "%-H:%M:%S %p" -- h:mm:ss tt
, dateTime = "%d-%m-%Y %H:%M" -- date time
, firstDayOfWeek = Date.Mon
}
}
20 changes: 5 additions & 15 deletions src/Date/Extra/Config/Config_pl_pl.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,11 @@ config =
, twelveHourPeriod = Default.twelveHourPeriod
}
, format =
{ date =
"%d.%m.%Y"
-- dd.MM.yyyy
, longDate =
"%A, %-d %B %Y"
-- dddd, d MMMM yyyy
, time =
"%-H:%M"
-- h:mm
, longTime =
"%-H:%M:%S"
-- h:mm:ss
, dateTime =
"%-d.%m.%Y %-H:%M"
-- date + time
{ date = "%d.%m.%Y" -- dd.MM.yyyy
, longDate = "%A, %-d %B %Y" -- dddd, d MMMM yyyy
, time = "%-H:%M" -- h:mm
, longTime = "%-H:%M:%S" -- h:mm:ss
, dateTime = "%-d.%m.%Y %-H:%M" -- date + time
, firstDayOfWeek = Date.Mon
}
}
20 changes: 5 additions & 15 deletions src/Date/Extra/Config/Config_ro_ro.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,11 @@ config =
, twelveHourPeriod = Default.twelveHourPeriod
}
, format =
{ date =
"%d.%m.%Y"
-- dd.MM.yyyy
, longDate =
"%A, %-d %B %Y"
-- dddd, d MMMM yyyy
, time =
"%-H:%M"
-- h:mm
, longTime =
"%-H:%M:%S"
-- h:mm:ss
, dateTime =
"%-d.%m.%Y %-H:%M"
-- date + time
{ date = "%d.%m.%Y" -- dd.MM.yyyy
, longDate = "%A, %-d %B %Y" -- dddd, d MMMM yyyy
, time = "%-H:%M" -- h:mm
, longTime = "%-H:%M:%S" -- h:mm:ss
, dateTime = "%-d.%m.%Y %-H:%M" -- date + time
, firstDayOfWeek = Date.Mon
}
}
20 changes: 5 additions & 15 deletions src/Date/Extra/Config/Config_ru_ru.elm
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,11 @@ config =
, twelveHourPeriod = Russian.twelveHourPeriod
}
, format =
{ date =
"%d/%m/%Y"
-- d/M/YYY
, longDate =
"%A, %B %d, %Y"
-- dddd, MMMM dd, yyyy
, time =
"%H:%M"
-- H:mm tt
, longTime =
"%H:%M:%S"
-- H:mm:ss
, dateTime =
"%d/%m/%Y %H:%M"
-- date + time
{ date = "%d/%m/%Y" -- d/M/YYY
, longDate = "%A, %B %d, %Y" -- dddd, MMMM dd, yyyy
, time = "%H:%M" -- H:mm tt
, longTime = "%H:%M:%S" -- H:mm:ss
, dateTime = "%d/%m/%Y %H:%M" -- date + time
, firstDayOfWeek = Date.Mon
}
}
15 changes: 5 additions & 10 deletions src/Date/Extra/Config/Config_tr_tr.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,11 @@ config =
, twelveHourPeriod = Default.twelveHourPeriod
}
, format =
{ date =
"%d.%m.%Y"
, longDate =
"%d %B %Y %A"
, time =
"%H:%M"
, longTime =
"%H:%M:%S"
, dateTime =
"%d %B %Y %-H:%M:%S"
{ date = "%d.%m.%Y"
, longDate = "%d %B %Y %A"
, time = "%H:%M"
, longTime = "%H:%M:%S"
, dateTime = "%d %B %Y %-H:%M:%S"
, firstDayOfWeek = Date.Mon
}
}
2 changes: 1 addition & 1 deletion src/Date/Extra/Duration.elm
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ addMonth monthCount date =



{- Return a date with year count added to date. -}
{- Return a date with year count added to date. -}


addYear : Int -> Date -> Date
Expand Down
2 changes: 1 addition & 1 deletion src/Date/Extra/I18n/I_default.elm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Date.Extra.TwelveHourClock exposing (TwelveHourPeriod(..))


{-| 12-hour clock period (AM/PM) translation and formatting.
This should be valid for most latin-based languages.
This should be valid for most latin-based languages.
-}
twelveHourPeriod : TwelveHourPeriod -> String
twelveHourPeriod period =
Expand Down
Loading

0 comments on commit 7a812d6

Please sign in to comment.