Skip to content

Kirby 4.2.0

$kirby->root('i18n')

Returns the root of the i18n (core languages) folder.

Example

<?= $kirby->root('i18n') ?>

Custom setup

If you want to overwrite the root you can do this in your index.php by passing a custom roots setup to the Kirby constructor.

/index.php
<?php

include 'kirby/bootstrap.php';

$kirby = new Kirby([
    'roots' => [
        'i18n' => '/absolute/path/to/custom/root',
    ],
]);

echo $kirby->render();