diff --git a/includes/i18n.php b/includes/i18n.php index 49de6c5..40d5382 100644 --- a/includes/i18n.php +++ b/includes/i18n.php @@ -26,4 +26,7 @@ if (!function_exists('tr')) { function tr($key) { return $GLOBALS['translations'][$key] ?? $key; } -} \ No newline at end of file +} + +// Export pour le client (header.php → window.I18N) : pachaConfirm, modules JS, etc. +$current_translations_array = $GLOBALS['translations'] ?? []; \ No newline at end of file