public function load($locale): array
    {
        // if file not exists
        if (!\file_exists($this->getFilePath($locale))) {
            // if local support build in get translate from package.
            if ($this->isSupportLocal($locale)) {
                return include $this->getFilePath($locale, true);
            }

            return [];
        }

        return include $this->getFilePath($locale);
    }
public function load($locale): array
    {
        // if file not exists
        if (!\file_exists($this->getFilePath($locale))) {
            // if local support build in get translate from package.
            if ($this->isSupportLocal($locale)) {
                return include $this->getFilePath($locale, true);
            }

            return [];
        }

        return include $this->getFilePath($locale);
    }
public function load ( $ locale ) : array { // if file not exists if ( ! \ file_exists ( $ this -> getFilePath ( $ locale ) ) ) { // if local support build in get translate from package. if ( $ this -> isSupportLocal ( $ locale ) ) { return include $ this -> getFilePath ( $ locale , true ) ; } return [ ] ; } return include $ this -> getFilePath ( $ locale ) ; }
load lang.

@param $locale

@return array
load lang .