How to find the current language of Joomla sites Home Forums Joomla Support Forum How to find the current language of Joomla sites Browse All Products 32 Joomla 9 WordPress 7 Html 11 Php 5 0 Login to Ask a Question All Forums 111 Joomla Support 101 WordPress Support 2 Bootstrap Support 1 PHP Support 3 General Support 4 How to find the current language of Joomla sites New Issue Joomla Support Alex 07 Feb 2018 (1 Ratings) How to generate a code that will detect the current website language of Joomla site.Thanks in advance! joomla language 1 Responses AppClave 6 years ago #187 Hi, $lang = JFactory::getLanguage(); echo 'Current language is: ' . $lang->getName(); Using for loop: $lang = JFactory::getLanguage(); foreach($lang->getLocale() as $locale) { echo 'This language supports the locale: ' . $locale; } If you just want to get the selected language tag $lang = JFactory::getLanguage(); echo 'Current language is: ' . $lang->getTag(); Best Regards AppClave Team Reply Submit Your Response Sign up for free to join this conversation on AppClave. Already have an account? Login into comment
How to find the current language of Joomla sites
How to find the current language of Joomla sites
How to generate a code that will detect the current website language of Joomla site.
Thanks in advance!
1 Responses
Submit Your Response
Already have an account? Login into comment