dirkfabisch / mediator

a medium inspired jekyll theme

Home Page:blog.base68.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't figure out how to localize dates

koulaxizis opened this issue · comments

Hey bro! I'm just a regular user without any knowledge of coding. I saw your theme, loved it and decided to give it a try. And it's really awesome!! I translated the whole project into Greek - except one little part: I can't figure out how to localize dates. I'd like to translate them into Greek too! Could you please help?

Are you looking to have it always be in Greek? Or just if that person is looking at it in Greece?

If you always want it in Greek, just set the date in your post header to be the date in Greek. If you want it to change depending on location, check out the JavaScript function Date#toLocaleDateString which takes a date and prints it according to the local browser settings.

I'm looking to have it always be in Greek.

The dates are still in English, no matter what I try (I repeat though, I'm not a programmer, it's probably my mistake). They appear as "July", not "Ιούλιος". That's what I'd like to change...