how to get the current locale in symfony 2.3?
Simply use $request->getLocale();
in Symfony 4 since this seems to the top link when you search in Google for this topic.
You can get current locale by this
$request = $this->get('request');
echo $request->getLocale();