public function append($path): bool
    {
        $path = Normalize::diskFullPath($path);
        // check if file exist
        if (!File::exist($path)) {
            return false;
        }

        // load file translations
        $addTranslation = require($path);
        if (!Any::isArray($addTranslation)) {
            return false;
        }

        // merge data
        $this->cached = Arr::merge($this->cached, $addTranslation);
        return true;
    }
public function append($path): bool
    {
        $path = Normalize::diskFullPath($path);
        // check if file exist
        if (!File::exist($path)) {
            return false;
        }

        // load file translations
        $addTranslation = require($path);
        if (!Any::isArray($addTranslation)) {
            return false;
        }

        // merge data
        $this->cached = Arr::merge($this->cached, $addTranslation);
        return true;
    }
public function append ( $ path ) : bool { $ path = Normalize :: diskFullPath ( $ path ) ; // check if file exist if ( ! File :: exist ( $ path ) ) { return false ; } // load file translations $ addTranslation = require ( $ path ) ; if ( ! Any :: isArray ( $ addTranslation ) ) { return false ; } // merge data $ this -> cached = Arr :: merge ( $ this -> cached , $ addTranslation ) ; return true ; }
Append translation data from exist full path
@param string $path
@return bool
Append translation data from exist full path