Koha::Language
use Koha::Language; Koha::Language->set_requested_language('xx-XX'); my $language = Koha::Language->get_requested_language();
This module is essentially a communication tool between the REST API and C4::Languages::getlanguage so that getlanguage can be aware of the value of KohaOpacLanguage cookie when not in CGI context.
It can also be used in other contexts, like command line scripts for instance.
Caches requested language
Gets requested language from cache