Closed Myrdincx closed 5 months ago
For some reason I'm unable to test out if it works. I tried creating a /i18n/ directory on the test website I'm using, following the "Lost in Translation" instructions but the website doesn't seem to pick the language up. Resulting in everything being in English and the "change language" button not showing
Hi @Myrdincx!
Thank you for this PR. I will test it as soon as I can (next week) before merging.
The custom i18n
file should work, so I will check that out as well.
Cheers
I probably did something wrong but I have no clue what. What I did:
i18n
folder in the main directory nl.toml
file in the i18n
folder[language.nl]
<config here>
_index.nl.md
in all the content folders (pages, projects, ...)zola serve
Result: Website did build and was accessible but everything was in English, the option to change languages was not available
Did you add any actual posts in nl? E.g. files like content/blog/faq-languages/index.nl.md
.
In any case, I was able to test it locally with these steps:
i18n
folder on root Zola site dirnl. toml
default_language = "nl"
in config.toml
zola serve
Thank you for your contribution!
Summary
Related issue
Changes
Accessibility
Screenshots
Type of change
[x] Other (please describe below) Adding a translation (Dutch/Flemish)
Checklist
Haven't tested it out, but it should be fine, I assume? I can test if needed.
theme.toml
with a sane default for the featureconfig.toml
commentstheme.toml
comments