diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..c6da9f0 --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,8 @@ +[days] +sun = "Sunday" +mon = "Monday" +tues = "Tuesday" +wend = "Wednesday" +thurs = "Thursday" +fri = "Friday" +sat = "Saturday" \ No newline at end of file diff --git a/i18n/pl.toml b/i18n/pl.toml new file mode 100644 index 0000000..ffa89e2 --- /dev/null +++ b/i18n/pl.toml @@ -0,0 +1,8 @@ +[days] +sun = "Niedziela" +mon = "Poniedziałek" +tues = "Wtorek" +wend = "Środa" +thurs = "Czwartek" +fri = "Piątek" +sat = "Sobota" \ No newline at end of file diff --git a/layouts/shortcodes/calendar.html b/layouts/shortcodes/calendar.html index 9aa7975..17bc3bd 100644 --- a/layouts/shortcodes/calendar.html +++ b/layouts/shortcodes/calendar.html @@ -15,101 +15,47 @@ {{ $daysInMonth := $daysInMonth.Hours }} {{ $daysInMonth := div $daysInMonth 24 }} -{{ $padding := $t1.Weekday | int }} -
{{ i18n (printf "days.%s" .) }}
{{ end }} +