add greek translation #750
Unanswered
jimishol
asked this question in
2 - Q&A / Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions