public function get(Module $module)
    {
        $moduleName = $module->getName();

        if (Lang::has("$moduleName::module.title")) {
            $module->localname = Lang::get("$moduleName::module.title");
        } else {
            $module->localname = $module->getStudlyName();
        }

        if (Lang::has("$moduleName::module.description")) {
            $module->description = Lang::get("$moduleName::module.description");
        }

        $package = $this->packageVersion->getPackageInfo("societycms/module-$moduleName");

        if (isset($package->name) && strpos($package->name, '/')) {
            $module->vendor = explode('/', $package->name)[0];
        }

        $module->version = isset($package->version) ? $package->version : 'N/A';
        $module->versionUrl = '#';

        $module->isCore = $this->isCoreModule($module);

        if (isset($package->source->url)) {
            $packageUrl = str_replace('.git', '', $package->source->url);
            $module->versionUrl = $packageUrl.'/tree/'.$package->dist->reference;
        }

        $module->license = $package->license;

        return $module;
    }