/* Add custom Js styles below */ // Select the language button span const langButton = document.querySelector('button.btn--rounded-gray span:first-child'); if (langButton) { // Check the current language of the page // Assuming your platform uses "lang" attribute on or body, or the Arabic text is still present const htmlLang = document.documentElement.lang || document.querySelector('html').getAttribute('lang') || 'ar'; if (htmlLang.toLowerCase().startsWith('ar')) { // Page is Arabic → show "EN" langButton.textContent = 'EN'; } else { // Page is English → show "العربية" langButton.textContent = 'العربية'; } }