private function filterLocales(array $supportedLocales)
    {
        return $this->locales->filter(function(Locale $locale) use ($supportedLocales) {
            return in_array($locale->key(), $supportedLocales);
        });
    }
private function filterLocales(array $supportedLocales)
    {
        return $this->locales->filter(function(Locale $locale) use ($supportedLocales) {
            return in_array($locale->key(), $supportedLocales);
        });
    }
private function filterLocales ( array $ supportedLocales ) { return $ this -> locales -> filter ( function ( Locale $ locale ) use ( $ supportedLocales ) { return in_array ( $ locale -> key ( ) , $ supportedLocales ) ; } ) ; }
Filter locale collection.

@param  array  $supportedLocales

@return \Arcanedev\Localization\Entities\LocaleCollection
Filter locale collection .