This commit is contained in:
KANE LAZENI 2026-05-13 12:24:13 +00:00
parent 02053dd7d1
commit 5e9d69156c

View File

@ -154,9 +154,15 @@
]
];
function t($key, $lang, $translations)
function t($key, $lang, $translations, $params)
{
return $translations[$lang][$key] ?? $key;
$text = $translations[$lang][$key] ?? $key;
if (!empty($params)) {
return vsprintf($text, $params);
}
return $text;
}
$tab_code_langue = ["fr_FR", "en_US"];