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 | 1982 | 9 years ago | ||
| 2 | 1337 | 9 years ago | ||
| 2 | 4538 | 9 years ago | ||
| 1 | 3392 | 9 years ago | ||
| 3 | 1487 | 9 years ago |