get all locales

Permalink
Hi,
How can i get current locale on a page?

 
mlocati replied on at Permalink Reply
mlocati
\Localization::activeLocale()
Herkool replied on at Permalink Reply
Thanx mlocati,
While we are on this, can you suggest a way to get root page of current language? I mean if we are at page under Italian path, get the root of italian language?
mlocati replied on at Permalink Best Answer Reply
mlocati
\Concrete\Core\Multilingual\Page\Section\Section::getBySectionOfSite(\Page::getCurrentPage())