Overwrite multi language domain setting locally

Unfortunately, this is a bit more complicated now but possible.

You can set up different translation roots depending on domain like in this post Kirby 3 and multisite, but instead of setting all the roots, you would set only the translation root for localhost (or you local test domain).

That would be something like this (not tested):

<?php

require 'kirby/bootstrap.php';


if(url::host() == "localhost") {
     $kirby = new Kirby([
        'roots' => [
            'translations'   => __DIR__.'/site/localtranslations',
           
        ]);
     echo $kirby->render();
} else {
   
     echo (new Kirby)->render(); 

}