public function getLocaleProvider()
    {
        if (null === $this->localeProvider) {
            $this->localeProvider = new Locale\LocaleProvider('fr', 'en', ['fr', 'en']);
        }

        return $this->localeProvider;
    }
public function getLocaleProvider()
    {
        if (null === $this->localeProvider) {
            $this->localeProvider = new Locale\LocaleProvider('fr', 'en', ['fr', 'en']);
        }

        return $this->localeProvider;
    }
public function getLocaleProvider ( ) { if ( null === $ this -> localeProvider ) { $ this -> localeProvider = new Locale \ LocaleProvider ( 'fr' , 'en' , [ 'fr' , 'en' ] ) ; } return $ this -> localeProvider ; }
Returns the locale provider.

@return Locale\LocaleProviderInterface
Returns the locale provider .