theNewDynamic / gohugo-theme-ananke

Ananke: A theme for Hugo Sites
https://gohugo-ananke-theme-demo.netlify.com/
MIT License
1.09k stars 1.12k forks source link

add greek translation #635

Open jimishol opened 1 year ago

jimishol commented 1 year ago

It was crucial for me to create directory i18n/el (Not "gr" as I and many greek people might do) and put el.toml in it. (Remove .txt extension, if you downloaded the previous file and change any Greek string to your liking.) Of course, a content/el directory should be created or, whatever your approach on multi-language is, el should be your language.

From there, i followed the exampleSite in theme and my config.toml settings are

[languages] [languages.en] weight = 1 contentDir = "content/en" [languages.el] weight = 2 contentDir = "content/el" date_format = "2 January 2006"

If you wish another date_format, do not change any part of it with other word or number, as these keywords are used internally by go. That's it. Now, i see "27 Απριλίου 2023" in my el site and " April 27, 2023 " in my en site.