<?php

declare(strict_types=1);

require_once __DIR__ . '/../includes/helpers.php';
require_once __DIR__ . '/../includes/i18n.php';

$locale = $GLOBALS['route_locale'] ?? 'en';

set_locale($locale);
redirect(normalize_locale_return((string)($_GET['return'] ?? '/')));
