<?php

namespace JetApplication\Installer;

use Jet\MVC_View;
use Jet\Tr;
use Jet\UI;

/**
 * @var MVC_View $this
 */
?>


<?php foreach( Installer::getAvailableLocales() as $locale ): ?>
	<div style="padding: 10px; display: flex;align-items: center;gap: 10px;">
		<div style="font-size: 1.6rem">
			<?= UI::flag( $locale ) ?>
		</div>
		<div>
			<b><?= $locale->getLanguageName( $locale ) ?></b>
			<br/>
			<a href="?locale=<?= $locale ?>" style="text-decoration: underline"><?= Tr::_(
					text: 'Please choose your language',
					dictionary: Installer::getCurrentStepName(),
					locale: $locale
				) ?></a>
		</div>
	</div>
<?php endforeach; ?>