hi
I want to get user’s current active language by twig and print it like ‘en’ for English. how is it possible?
p.s. I meant current displayed language for a user.
Use {{html_lang}}
it was {{grav.user.language}}
hi
I want to get user’s current active language by twig and print it like ‘en’ for English. how is it possible?
p.s. I meant current displayed language for a user.
Use {{html_lang}}
it was {{grav.user.language}}