Multi-language
Last updated
Was this helpful?
Last updated
Was this helpful?
Zero One is multi-language ready, and actually, in config.php it is set to 'languages' => true
. With English as the main language. And serving it as site root as a base. So, every .txt
file in content
folder has .en.txt
at the end.
Have in mind that Site Settings are also translatable, which means that you can have different settings per language.
And you want to add more languages, just go to Kirby Settings -> Languages, add a new language and start translating your content. Everything will work as expected.
See also:
Go to Kirby Settings -> Languages, and delete English as a default language. Add your language as the default language. That's it, you can start working.
There is just one thing. If you want your default language to be at domain root, you will have to go to zero-one/site/languages/[yourlanguageextension].php
, open it with a text editor and
When saved, your language will be at domain/folder root.
From version 2.1.0 support for automatic language detection exist in Zero One.
You just have to add to config.php
next option:
Zero One supports RTL (right-to-left) languages.
But to enable support on the front-end you'll have to go to xampp/htdocs/zero-one/site/snippets/header.php
and instead of
Add
If you are using multi-domain (), language detect can't work, so please turn it off. You can remove whole language detect code from config file.
And when you compile CSS files instead of yarn compile
you'll have to use yarn compile-rtl
.
Learn more at .
Also, check out RTL enabling in Kirby docs