Kirby Forum
How to access Language Code in HTML Header
The CMS
Questions
v3
texnixe
August 13, 2023, 6:02pm
2
$kirby->language()->code();
will give you the language code for the currently active language.
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
How to get the current language code?
Questions
v3
4
4293
February 19, 2019
Get default language code - without looping?
Questions
v2
7
775
February 6, 2025
Html lang attribute missing
Questions
v3
4
2271
June 13, 2019
Multi-language site and HTML lang tag
Questions
v2
9
3507
February 6, 2025
To set a button for changing language on the website
Questions
v2
5
8986
February 6, 2025