public function singular($key, array $vars = [])
    {
        if (isset(static::$strings[$key])) {
            $varKeys = array_keys($vars);
            foreach ($varKeys as $i => $k) {
                $varKeys[$i] = '{' . $k . '}';
            }

            return str_replace($varKeys, $vars, static::$strings[$key]);
        }

        return '';
    }
public function singular($key, array $vars = [])
    {
        if (isset(static::$strings[$key])) {
            $varKeys = array_keys($vars);
            foreach ($varKeys as $i => $k) {
                $varKeys[$i] = '{' . $k . '}';
            }

            return str_replace($varKeys, $vars, static::$strings[$key]);
        }

        return '';
    }
public function singular ( $ key , array $ vars = [ ] ) { if ( isset ( static :: $ strings [ $ key ] ) ) { $ varKeys = array_keys ( $ vars ) ; foreach ( $ varKeys as $ i => $ k ) { $ varKeys [ $ i ] = '{' . $ k . '}' ; } return str_replace ( $ varKeys , $ vars , static :: $ strings [ $ key ] ) ; } return '' ; }
Get a singular message.

@param string $key The key to use.
@param array $vars Additional context variables.
@return string The translated message or ''.
Get a singular message .