public function apply(): bool
    {
        $path = FEnv::get("framework.root")."apps/".$this->appname."/config.json";
        if (false === JsonListener::exists($path)) {
            AppConfig::createHimSelf($this->appname);
        }
       
        $file = JsonListener::open($path);
        $file->locale_enabled = $this->enabled;
        $file->locale_values = $this->values;
        $file->trans_type = $this->transtype;
        $file->prefer_locale = $this->prefer;
        return (JsonListener::put($path, json_encode($file, JSON_PRETTY_PRINT)));
    }