Lang::hasForLocale PHP Method

hasForLocale() public static method

Determine if a translation exists for a given locale.
public static hasForLocale ( string $key, string | null $locale = null ) : boolean
$key string
$locale string | null
return boolean
        public static function hasForLocale($key, $locale = null)
        {
            return \Illuminate\Translation\Translator::hasForLocale($key, $locale);
        }