Determine the locale to be used with this request
array $parameters the parameters determined by the route:
string|null the locale following of the parameters or any other information the router has available.
protected function getLocale($parameters) {
  if (isset($parameters['_locale'])) {
    return $parameters['_locale'];
  }
  return null;
}