public static function create(string $locale = 'en'): ValidatorFactory
    {
        $translator = new Translator;

        $factory = new ValidatorFactory($translator);
        $factory = $factory->withBuiltInFactories();
        $factory = $factory->withBuiltInTemplates($locale);

        return $factory;
    }
public static function create(string $locale = 'en'): ValidatorFactory
    {
        $translator = new Translator;

        $factory = new ValidatorFactory($translator);
        $factory = $factory->withBuiltInFactories();
        $factory = $factory->withBuiltInTemplates($locale);

        return $factory;
    }
public static function create ( string $ locale = 'en' ) : ValidatorFactory { $ translator = new Translator ; $ factory = new ValidatorFactory ( $ translator ) ; $ factory = $ factory -> withBuiltInFactories ( ) ; $ factory = $ factory -> withBuiltInTemplates ( $ locale ) ; return $ factory ; }
Return a validator factory using all the default rule factories and the
templates of the given locale.

@param string $locale
@return \Ellipse\Validator\ValidatorFactory
Return a validator factory using all the default rule factories and the templates of the given locale .