src/Carbon/Translator.php
public static function get($locale = null)
    {
        $locale = $locale ?: 'en';

        if (!isset(static::$singletons[$locale])) {
            static::$singletons[$locale] = new static($locale ?: 'en');
        }

        return static::$singletons[$locale];
    }
public static function get($locale = null)
    {
        $locale = $locale ?: 'en';

        if (!isset(static::$singletons[$locale])) {
            static::$singletons[$locale] = new static($locale ?: 'en');
        }

        return static::$singletons[$locale];
    }
public static function get ( $ locale = null ) { $ locale = $ locale ? : 'en' ; if ( ! isset ( static :: $ singletons [ $ locale ] ) ) { static :: $ singletons [ $ locale ] = new static ( $ locale ? : 'en' ) ; } return static :: $ singletons [ $ locale ] ; }
Return a singleton instance of Translator.

@param string|null $locale optional initial locale ("en" - english by default)

@return static
Return a singleton instance of Translator .