Zero One is multi-language ready, and actually in config.php it is set to
'languages' => true. With English as main language. And serving it as site root as base. So, every
.txt file in
content folder has
.en.txt at the end.
And you want to add more languages, just go to Kirby Settings, add new language and start translating your content. Everything will work as expected.
Go to Kirby Settings, and delete English as default language. Add your language as 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 text editor and
# Change this'url' => NULL# Into this'url' => '/'
When saved, your language will be at domain/folder root.
From version 2.1.0 support for automatic Languages detection exist in Zero One.
You just have to add to
config.php next option:
'languages.detect' => true,
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 of
<?= css(['assets/app/dist/css/uikit.app.min.css']) ?>
<?= css(['assets/app/dist/css/uikit.app-rtl.min.css']) ?>
And when you compile CSS files https://www.one.thezero.club/guide/theme-styling/less-css-setup#compile instead of
yarn compile you'll have to use
Learn more at https://getuikit.com/docs/rtl.
Also check out RTL enabling in Kirby docs https://getkirby.com/docs/guide/languages/supporting-RTL-languages