hi
I want to get user's current active language by twig and print it like 'en' for English. how is it possible?
Archive
p.s. I meant current displayed language for a user.
Use {{html_lang}}
it was {{grav.user.language}}
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1326 | 9 years ago | ||
| 2 | 920 | 9 years ago | ||
| 2 | 4049 | 9 years ago | ||
| 1 | 2927 | 9 years ago | ||
| 3 | 1106 | 9 years ago |