you can set the cultureKey with a plugin at the system-event OnInitCulture
this is part of a plugin I'm working on currently, which does switch the cultureKey and siteUrl, depending on different URLs
if (!empty($_REQUEST['cultureKey'])) {
$_SESSION['cultureKey'] = $_REQUEST['cultureKey'];
}
//$modx->setOption('original_site_url', $modx->getOption('site_url'));
if (!empty($_SESSION['cultureKey'])) {
$modx->setOption('cultureKey', $_SESSION['cultureKey']);
//$modx->setOption('site_url', $modx->getOption('site_url') . $_SESSION['cultureKey'] . '/');
//$modx->config['site_url'] = $modx->getOption('site_url') . $_SESSION['cultureKey'] . '/';
}
you will need to call everything, what is translated uncached.
But you can use the getCache - snippet, for example, to build caches for every language.
[ed. note: Bruno17 last edited this post 10 years, 3 months ago.]