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

add greek translation #635

Open
jimishol opened this issue Apr 29, 2023 · 0 comments
Open

add greek translation #635

jimishol opened this issue Apr 29, 2023 · 0 comments

Comments

@jimishol
Copy link

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.

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

1 participant