src/Carbon/Traits/Localization.php
public static function localeHasShortUnits($locale)
    {
        return static::executeWithLocale($locale, function ($newLocale, TranslatorInterface $translator) {
            return $newLocale &&
                (
                    ($y = static::translateWith($translator, 'y')) !== 'y' &&
                    $y !== static::translateWith($translator, 'year')
                ) || (
                    ($y = static::translateWith($translator, 'd')) !== 'd' &&
                    $y !== static::translateWith($translator, 'day')
                ) || (
                    ($y = static::translateWith($translator, 'h')) !== 'h' &&
                    $y !== static::translateWith($translator, 'hour')
                );
        });
    }
public static function localeHasShortUnits($locale)
    {
        return static::executeWithLocale($locale, function ($newLocale, TranslatorInterface $translator) {
            return $newLocale &&
                (
                    ($y = static::translateWith($translator, 'y')) !== 'y' &&
                    $y !== static::translateWith($translator, 'year')
                ) || (
                    ($y = static::translateWith($translator, 'd')) !== 'd' &&
                    $y !== static::translateWith($translator, 'day')
                ) || (
                    ($y = static::translateWith($translator, 'h')) !== 'h' &&
                    $y !== static::translateWith($translator, 'hour')
                );
        });
    }
public static function localeHasShortUnits ( $ locale ) { return static :: executeWithLocale ( $ locale , function ( $ newLocale , TranslatorInterface $ translator ) { return $ newLocale && ( ( $ y = static :: translateWith ( $ translator , 'y' ) ) !== 'y' && $ y !== static :: translateWith ( $ translator , 'year' ) ) || ( ( $ y = static :: translateWith ( $ translator , 'd' ) ) !== 'd' && $ y !== static :: translateWith ( $ translator , 'day' ) ) || ( ( $ y = static :: translateWith ( $ translator , 'h' ) ) !== 'h' && $ y !== static :: translateWith ( $ translator , 'hour' ) ) ; } ) ; }
Returns true if the given locale is internally supported and has short-units support.
Support is considered enabled if either year, day or hour has a short variant translated.

@param string $locale locale ex. en

@return bool
Returns true if the given locale is internally supported and has short - units support . Support is considered enabled if either year day or hour has a short variant translated .