-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
add greek translation #635
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: