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 | 1328 | 9 years ago | ||
| 2 | 921 | 9 years ago | ||
| 2 | 4050 | 9 years ago | ||
| 1 | 2928 | 9 years ago | ||
| 3 | 1107 | 9 years ago |