Is it frontpage? How to check in Joomla! multilaguage site?

Unfortunately no way to easy checking current page on frontpage or not in Joomla! when you use multilanguage mode.
Possible solution:

$app = JFactory::getApplication();
$menu = $app->getMenu();
$lang = JFactory::getLanguage();

if ($menu->getActive() == $menu->getDefault($lang->getTag())) {
    echo 'Frontpage detected';
} else {
    echo 'NOT frontpage';
}

Try to check…