Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't figure out how to localize dates #62

Open
koulaxizis opened this issue Jun 12, 2016 · 2 comments
Open

Can't figure out how to localize dates #62

koulaxizis opened this issue Jun 12, 2016 · 2 comments

Comments

@koulaxizis
Copy link

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?

@excel-tricks
Copy link

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.

@koulaxizis
Copy link
Author

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants