src/Common/CodeIgniter/Libraries/FormValidation.php
public function supportedLocale($sValue)
    {
        /** @var Locale $oLocale */
        $oLocale           = Factory::service('Locale');
        $aSupportedLocales = $oLocale->getSupportedLocales();
        if (!in_array($sValue, $aSupportedLocales)) {
            $this->set_message('supportedLocale', 'This is not a supported locale');
            return false;
        }

        return true;
    }
public function supportedLocale($sValue)
    {
        /** @var Locale $oLocale */
        $oLocale           = Factory::service('Locale');
        $aSupportedLocales = $oLocale->getSupportedLocales();
        if (!in_array($sValue, $aSupportedLocales)) {
            $this->set_message('supportedLocale', 'This is not a supported locale');
            return false;
        }

        return true;
    }
public function supportedLocale ( $ sValue ) { /** @var Locale $oLocale */ $ oLocale = Factory :: service ( 'Locale' ) ; $ aSupportedLocales = $ oLocale -> getSupportedLocales ( ) ; if ( ! in_array ( $ sValue , $ aSupportedLocales ) ) { $ this -> set_message ( 'supportedLocale' , 'This is not a supported locale' ) ; return false ; } return true ; }
Determines whether the vlaue is a supported locale

@param string $sValue The vaue to check

@return bool
@throws \Nails\Common\Exception\FactoryException
Determines whether the vlaue is a supported locale