Hi!
I use three languages. I want to write an if statement in the template (or the controller) according to the language of the page. is it possible?
thank you!
Hi!
I use three languages. I want to write an if statement in the template (or the controller) according to the language of the page. is it possible?
thank you!
You can get the current language with the language object
<?php if($kirby->language()->code() == 'en'): ?>
<p>English</p>
<?php endif ?>
thank you!