protected function normalizeLocale($key, $locale, $useFallback)
    {
        if (in_array($locale, $this->getTranslatedLocales($key)) || ! $useFallback)
            return $locale;

        return config('app.fallback_locale') ?: $locale;
    }
protected function normalizeLocale($key, $locale, $useFallback)
    {
        if (in_array($locale, $this->getTranslatedLocales($key)) || ! $useFallback)
            return $locale;

        return config('app.fallback_locale') ?: $locale;
    }
protected function normalizeLocale ( $ key , $ locale , $ useFallback ) { if ( in_array ( $ locale , $ this -> getTranslatedLocales ( $ key ) ) || ! $ useFallback ) return $ locale ; return config ( 'app.fallback_locale' ) ? : $ locale ; }
Normalize the locale.

@param  string  $key
@param  string  $locale
@param  bool    $useFallback

@return string
Normalize the locale .