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;
    }
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;
    }
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 ; }
Set the locale.
The locale Identifier will be converted into a Locale

@param string $locale An identifier of locale to use (NULL for use the default locale)
@return TranslationParameterToken
@throws FlowException
Set the locale . The locale Identifier will be converted into a Locale