public function locale($locale)
{
try {
$this->parameters['locale'] = new Locale($locale);
} catch (InvalidLocaleIdentifierException $e) {
throw new FlowException(sprintf('"%s" is not a valid locale identifier.', $locale), 1436784806);
}
return $this;
}