<?php
require_once __DIR__ . '/../config/user_functions.php';

if (session_status() === PHP_SESSION_NONE) session_start();
$lang = $_SESSION['lang'] ?? 'en';
$file = __DIR__ . '/../lang/' . $lang . '.json';
if (!file_exists($file)) $file = __DIR__ . '/../lang/en.json';
$t = json_decode(file_get_contents($file), true);
?>
